fix typscript error TypeScript error: novnc/core/rfb.js(1012,17): Error TS7027: Unreachable code detected.

This commit is contained in:
shaneharris 2017-06-03 10:43:04 +01:00 committed by GitHub
parent 255fbe0c9e
commit e8367e2f4e
1 changed files with 1 additions and 1 deletions

View File

@ -1009,7 +1009,7 @@ RFB.prototype = {
} else { } else {
return this._fail("Authentication failure"); return this._fail("Authentication failure");
} }
return false; //return false; causes TypeScript error: novnc/core/rfb.js(1012,17): Error TS7027: Unreachable code detected.
case 2: case 2:
return this._fail("Too many authentication attempts"); return this._fail("Too many authentication attempts");
default: default: