summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/autofire/autofire_save.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/autofire/autofire_save.lua')
-rw-r--r--plugins/autofire/autofire_save.lua4
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/autofire/autofire_save.lua b/plugins/autofire/autofire_save.lua
index 6a30438bfd9..543b36ec7c8 100644
--- a/plugins/autofire/autofire_save.lua
+++ b/plugins/autofire/autofire_save.lua
@@ -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)