mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
changing with jshint advice
This commit is contained in:
parent
57f3ea22b5
commit
b51bd07e3c
1 changed files with 3 additions and 3 deletions
|
|
@ -317,7 +317,7 @@ CloudServer._controller=function(pReq, pRes)
|
|||
* длиннее
|
||||
*/
|
||||
|
||||
if(pathname.indexOf(lNoJS_s)!=lFS_s.length && pathname!='/'){
|
||||
if(pathname.indexOf(lNoJS_s)!==lFS_s.length && pathname!=='/'){
|
||||
CloudServer.NoJS=false;
|
||||
}else pathname=pathname.replace(lNoJS_s,'');
|
||||
|
||||
|
|
@ -392,7 +392,7 @@ CloudServer._readDir=function (pError, pFiles)
|
|||
var lJSON=[];
|
||||
var lJSONFile={};
|
||||
/* Если мы не в корне добавляем слеш к будующим ссылкам */
|
||||
if(LeftDir!='/')
|
||||
if(LeftDir!=='/')
|
||||
{
|
||||
RightDir+='/';
|
||||
LeftDir+='/';
|
||||
|
|
@ -559,7 +559,7 @@ CloudServer.getReadFileFunc = function(pName){
|
|||
else
|
||||
{
|
||||
console.log(pError.path);
|
||||
if(pError.path!='passwd.json')
|
||||
if(pError.path!=='passwd.json')
|
||||
{
|
||||
console.log(pError);
|
||||
CloudServer.sendResponse('OK',pError.toString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue