From 71ead8d8bfc17f97d1fc5d25b4c565e3056fe077 Mon Sep 17 00:00:00 2001 From: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com> Date: Sat, 4 Jun 2022 16:13:25 +0000 Subject: [PATCH] luci-app-autoreboot: code alignment --- .../luci-app-autoreboot/luasrc/controller/autoreboot.lua | 2 +- .../luci-app-autoreboot/luasrc/model/cbi/autoreboot.lua | 4 ++-- applications/luci-app-autoreboot/po/zh-cn/autoreboot.po | 5 ----- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/applications/luci-app-autoreboot/luasrc/controller/autoreboot.lua b/applications/luci-app-autoreboot/luasrc/controller/autoreboot.lua index 871af237..49a0b8da 100644 --- a/applications/luci-app-autoreboot/luasrc/controller/autoreboot.lua +++ b/applications/luci-app-autoreboot/luasrc/controller/autoreboot.lua @@ -1,4 +1,4 @@ -module("luci.controller.autoreboot",package.seeall) +module("luci.controller.autoreboot", package.seeall) function index() if not nixio.fs.access("/etc/config/autoreboot") then diff --git a/applications/luci-app-autoreboot/luasrc/model/cbi/autoreboot.lua b/applications/luci-app-autoreboot/luasrc/model/cbi/autoreboot.lua index 64fd86d1..038f3316 100644 --- a/applications/luci-app-autoreboot/luasrc/model/cbi/autoreboot.lua +++ b/applications/luci-app-autoreboot/luasrc/model/cbi/autoreboot.lua @@ -8,7 +8,7 @@ s = m:section(TypedSection, "login") s.addremove = false s.anonymous = true -enable = s:option(Flag,"enable" ,translate("Enable")) +enable = s:option(Flag, "enable", translate("Enable")) enable.rmempty = false enable.default = 0 @@ -34,7 +34,7 @@ pass.rmempty = false local e = luci.http.formvalue("cbi.apply") if e then - io.popen("/etc/init.d/autoreboot restart") + io.popen("/etc/init.d/autoreboot restart") end return m diff --git a/applications/luci-app-autoreboot/po/zh-cn/autoreboot.po b/applications/luci-app-autoreboot/po/zh-cn/autoreboot.po index 554ef2cc..dcd25f91 100644 --- a/applications/luci-app-autoreboot/po/zh-cn/autoreboot.po +++ b/applications/luci-app-autoreboot/po/zh-cn/autoreboot.po @@ -18,8 +18,3 @@ msgstr "小时" msgid "Minute" msgstr "分钟" - - - - -