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 authored and Jakub Vrana committed 2020-03-11 13:27:56 +01:00
1 parent 3b97349f05
commit f722072807
15 files changed
+50 -50

No files matched your search

@@ -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);