GUACAMOLE-986: Add non-nullable modifier to return type of functions never returning null

Alternatively use a primitive type instead of nullable boxed type.
This commit is contained in:
Jakub Vrána
2020-03-10 14:40:46 +01:00
committed by Jakub Vrana
parent 3b97349f05
commit f722072807
15 changed files with 50 additions and 50 deletions

View File

@@ -375,7 +375,7 @@ Guacamole.Mouse = function(element) {
* @param {HTMLCanvasElement} canvas The cursor image.
* @param {Number} x The X-coordinate of the cursor hotspot.
* @param {Number} y The Y-coordinate of the cursor hotspot.
* @return {Boolean} true if the cursor was successfully set, false if the
* @return {!Boolean} true if the cursor was successfully set, false if the
* cursor could not be set for any reason.
*/
this.setCursor = function(canvas, x, y) {
@@ -951,7 +951,7 @@ Guacamole.Mouse.Touchscreen = function(element) {
*
* @private
* @param {TouchEvent} e The touch event to check.
* @return {Boolean} true if the movement threshold is exceeded, false
* @return {!Boolean} true if the movement threshold is exceeded, false
* otherwise.
*/
function finger_moved(e) {