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

@@ -271,7 +271,7 @@ Guacamole.Layer = function(width, height) {
* of the canvas may not exactly match those of the Layer, as resizing a
* canvas while maintaining its state is an expensive operation.
*
* @returns {HTMLCanvasElement}
* @returns {!HTMLCanvasElement}
* The canvas element backing this Layer.
*/
this.getCanvas = function getCanvas() {
@@ -283,7 +283,7 @@ Guacamole.Layer = function(width, height) {
* Unlike getCanvas(), the canvas element returned is guaranteed to have
* the exact same dimensions as the Layer.
*
* @returns {HTMLCanvasElement}
* @returns {!HTMLCanvasElement}
* A new canvas element containing a copy of the image content this
* Layer.
*/