Skip to content

Commit

Permalink
refactor(sqlite-wrapper): remove redundant default = nil
Browse files Browse the repository at this point in the history
  • Loading branch information
jghauser committed Jul 4, 2024
1 parent 71acb18 commit 3f046e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/papis/sqlite-wrapper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ local function get_config_tbl_schema()
local tbl_schema = { id = true, }
for _, key in ipairs(config.papis_conf_keys) do
local sanitized_key = string.gsub(key, "-", "_")
tbl_schema[sanitized_key] = { "text", default = nil }
tbl_schema[sanitized_key] = { "text" }
end
return tbl_schema
end
Expand Down Expand Up @@ -183,8 +183,8 @@ local schemas = {
},
state = {
id = true,
fw_running = { "integer", default = nil },
tag_format = { "text", default = nil },
fw_running = { "integer" },
tag_format = { "text" },
},
config = get_config_tbl_schema(),
}
Expand Down

0 comments on commit 3f046e9

Please sign in to comment.