From 18e6f7bc817c28bfc578933d9fd01e384757f20f Mon Sep 17 00:00:00 2001 From: Grady Date: Fri, 1 Nov 2013 13:23:30 -0400 Subject: [PATCH] removed unnecessary empty file condition. Now all uploads are run through the check File function, which will catch empty uploads. --- luasrc/controller/commotion/meshprofile.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/luasrc/controller/commotion/meshprofile.lua b/luasrc/controller/commotion/meshprofile.lua index d197a23..bf5b23f 100644 --- a/luasrc/controller/commotion/meshprofile.lua +++ b/luasrc/controller/commotion/meshprofile.lua @@ -179,11 +179,11 @@ function up() local overwrite = values["overwrite"] local ul = values["config"] - if ul ~= '' and ul ~= nil then - --TODO add logging to checkfile to identify why it does not work - file = "/tmp/" .. ul - error = checkFile(file) - end + + --TODO add logging to checkfile to identify why it does not work + file = "/tmp/" .. ul + error = checkFile(file) + if error ~= nil then main(error)