规范代码,大量xxx=nil换成xxx=false

This commit is contained in:
MrZ626
2020-12-22 14:54:01 +08:00
parent f611199fab
commit fe2abf6903
25 changed files with 127 additions and 128 deletions

View File

@@ -17,8 +17,8 @@ function Tick.httpREQ_getAccessToken(task)
end
else
LOGIN=false
USER.access_token=nil
USER.auth_token=nil
USER.access_token=false
USER.auth_token=false
local err=json.decode(response.body)
if err then
LOG.print(text.loginFailed..": "..text.netErrorCode..response.code.."-"..err.message,"warn")
@@ -54,7 +54,7 @@ local function tick_wsCONN_read()
end
elseif readErr then
wsWrite("/quit")
WSCONN=nil
WSCONN=false
LOG.print(text.wsDisconnected,"warn")
return
end