plugins/autofire: remove leftover code from first attempt at removing empty configuration files

This commit is contained in:
Vas Crabb 2020-07-19 23:07:39 +10:00 committed by GitHub
parent 070eeeec3a
commit 718da3388c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,10 +81,6 @@ function lib:save_settings(buttons)
local json = require('json')
local settings = serialize_settings(buttons)
local data = json.stringify(settings, {indent = true})
if string.len(data) <= 2 then
os.remove(path .. get_settings_filename())
return
end
local file = io.open(path .. get_settings_filename(), 'w')
if file then
file:write(data)