remove redundant checks in wake of 980de904e

This commit is contained in:
Nikolaus Gullotta
2018-08-02 09:17:54 -05:00
parent 77d1982d1d
commit dfb1c52192
2 changed files with 3 additions and 24 deletions

View File

@@ -53,10 +53,6 @@ function factory () return function ()
if not(isdir(global_path)) then
global_ok, _, _ = os.execute('mkdir '.. global_path)
if global_ok == 0 then
local default_file = ARDOUR.LuaAPI.build_filename(global_path, 'FactoryDefault-'..whoami()..'.lua')
local file = io.open(default_file, "w")
file:write("")
file:close()
global_ok = true
end
else
@@ -65,10 +61,6 @@ function factory () return function ()
if not(isdir(local_path)) then
local_ok, _, _ = os.execute('mkdir '.. local_path)
if local_ok == 0 then
local stub_file = ARDOUR.LuaAPI.build_filename(local_path, 'stub')
local file = io.open(stub_file, "w")
file:write("")
file:close()
local_ok = true
end
else