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

@@ -65,7 +65,7 @@ Guacamole.StringReader = function(stream) {
*
* @private
* @param {ArrayBuffer} buffer Arbitrary UTF-8 data.
* @return {String} A decoded Unicode string.
* @return {string} A decoded Unicode string.
*/
function __decode_utf8(buffer) {