整理代码

This commit is contained in:
MrZ626
2021-05-01 02:27:16 +08:00
parent f8de8d4f16
commit bd8e55b977
9 changed files with 18 additions and 14 deletions

View File

@@ -132,7 +132,7 @@ function profile.report(n)
if #out>0 then
sz=sz.." | "..table.concat(out," | \n | ").." | \n"
end
return"\n"..sz..row
return "\n"..sz..row
end
local switch=false

View File

@@ -7,7 +7,7 @@ local themeColor={
}
function THEME.calculate(Y,M,D)
if not Y then Y,M,D=os.date"%Y",os.date"%m",os.date"%d"end
if not Y then Y,M,D=os.date("%Y"),os.date("%m"),os.date("%d")end
--Festival calculate within one statement
return
--Christmas
@@ -84,7 +84,7 @@ function THEME.getThemeColor(theme)
end
function THEME.fresh()
THEME.set(THEME.calculate(os.date"%Y",os.date"%m",os.date"%d"))
THEME.set(THEME.calculate(os.date("%Y"),os.date("%m"),os.date("%d")))
end
return THEME

View File

@@ -55,7 +55,7 @@ do--Connect
res,err=SOCK:receive("*l")
if not res then readCHN:push(err)return end
if not ctLen and res:find("length")then
ctLen=tonumber(res:match"%d+")
ctLen=tonumber(res:match("%d+"))
end
until res==""