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

@@ -76,7 +76,7 @@ Guacamole.Tunnel = function() {
/**
* Returns whether this tunnel is currently connected.
*
* @returns {Boolean}
* @returns {boolean}
* true if this tunnel is currently connected, false otherwise.
*/
this.isConnected = function isConnected() {
@@ -389,7 +389,7 @@ Guacamole.HTTPTunnel = function(tunnelURL, crossDomain, extraTunnelHeaders) {
*
* @private
* @param value The value to convert.
* @return {String} The converted value.
* @return {string} The converted value.
*/
function getElement(value) {
var string = new String(value);
@@ -911,7 +911,7 @@ Guacamole.WebSocketTunnel = function(tunnelURL) {
*
* @private
* @param value The value to convert.
* @return {String} The converted value.
* @return {string} The converted value.
*/
function getElement(value) {
var string = new String(value);