diff options
author | Ted Trask <ttrask01@yahoo.com> | 2016-08-04 15:55:56 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2016-08-04 15:55:56 +0000 |
commit | a0c9b5cb07e4b691874e858527e36cb8c83c56d0 (patch) | |
tree | f198cd9f9ced2e66998aa1db6cbe1c265f03862b /lib/modelfunctions.lua | |
parent | df0d2e0e18549e8fe348d08769c929340d75131e (diff) | |
download | acf-core-a0c9b5cb07e4b691874e858527e36cb8c83c56d0.tar.bz2 acf-core-a0c9b5cb07e4b691874e858527e36cb8c83c56d0.tar.xz |
Remove trailing whitespace
Diffstat (limited to 'lib/modelfunctions.lua')
-rw-r--r-- | lib/modelfunctions.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/modelfunctions.lua b/lib/modelfunctions.lua index e9210ee..b72e610 100644 --- a/lib/modelfunctions.lua +++ b/lib/modelfunctions.lua @@ -68,7 +68,7 @@ function mymodule.getstatus(servicename, packagename, label) if servicename then status.status = mymodule.getenabled(servicename) - + local autostart_value, autostart_errtxt = processinfo.process_autostart(servicename) status.autostart = cfe({ label="Autostart status", @@ -96,7 +96,7 @@ function mymodule.getfiledetails(file, validatefilename, validatefiledetails) elseif type(validatefilename) == "table" then success = false filedetails.value.filename.errtxt = "Invalid File" - for i,f in ipairs(validatefilename) do + for i,f in ipairs(validatefilename) do if f == filedetails.value.filename.value then success = true filedetails.value.filename.errtxt = nil @@ -130,7 +130,7 @@ function mymodule.setfiledetails(self, filedetails, validatefilename, validatefi elseif type(validatefilename) == "table" then success = false filedetails.value.filename.errtxt = "Invalid File" - for i,f in ipairs(validatefilename) do + for i,f in ipairs(validatefilename) do if f == filedetails.value.filename.value then success = true filedetails.value.filename.errtxt = nil @@ -186,10 +186,10 @@ function mymodule.write_file_with_audit (self, path, str) local pre = "" local post = "" - local tmpfile = (self.conf.sessiondir or "/tmp/") .. + local tmpfile = (self.conf.sessiondir or "/tmp/") .. (self.sessiondata.userinfo.userid or "unknown") .. "-" .. os.time() .. ".tmp" - + if type(self.conf) == "table" then -- we make temporary globals for expand_bash_syntax_vars local a,b,c = TEMPFILE,CONFFILE,_G.self @@ -205,7 +205,7 @@ function mymodule.write_file_with_audit (self, path, str) if m.audit_postcommit then post = m.audit_postcommit end m=nil - if (type(pre) == "string") then + if (type(pre) == "string") then pre = format.expand_bash_syntax_vars(pre) end if type (post) == "string" then |