mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 07:01:21 +00:00
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:
@@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user