summaryrefslogtreecommitdiffstatshomepage
path: root/plugins
diff options
context:
space:
mode:
author Vas Crabb <cuavas@users.noreply.github.com>2020-07-19 23:07:39 +1000
committer GitHub <noreply@github.com>2020-07-19 23:07:39 +1000
commit718da3388ce2a510ec1cee69bbee31acab36a98c (patch)
tree78e0e653d9fc36e4fe1cd8a6646f074fc02d1b4f /plugins
parent070eeeec3a500d0a73293e8b488613df89392548 (diff)
plugins/autofire: remove leftover code from first attempt at removing empty configuration files
Diffstat (limited to 'plugins')
-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)