From 52793385ea703ff32d9942c4dd83d63719aee8ba Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 2 Mar 2017 17:17:55 +0100 Subject: [PATCH] Fix lint errors --- .jshintignore | 1 + www/common/fileObject.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.jshintignore b/.jshintignore index 1eb999871..ae60d4ba0 100644 --- a/.jshintignore +++ b/.jshintignore @@ -5,6 +5,7 @@ www/common/chainpad.js storage/kad.js www/common/otaml.js +server.js NetFluxWebsocketSrv.js NetFluxWebsocketServer.js WebRTCSrv.js diff --git a/www/common/fileObject.js b/www/common/fileObject.js index 158f664ff..78bbbf088 100644 --- a/www/common/fileObject.js +++ b/www/common/fileObject.js @@ -272,7 +272,7 @@ define([ var unsorted = files[rootName].slice(); var ret = []; var i = -1; - while ((i = unsorted.indexOf(href, i+1)) != -1){ + while ((i = unsorted.indexOf(href, i+1)) !== -1){ ret.push([rootName, i]); } return ret;