summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/gall/tag.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/gall/tag.lua b/lib/gall/tag.lua
index 7bafbe7..0ea0cba 100644
--- a/lib/gall/tag.lua
+++ b/lib/gall/tag.lua
@@ -34,11 +34,8 @@ local function tagindex(tag, field)
if state == "headers" then
local first, second = l:match("^([^ ]+) (.+)$")
if first then
- if headers[first] then
- headers[first][#headers[first]+1] = second
- else
- headers[first] = { second }
- end
+ assert(not headers[first])
+ headers[first] = { second }
else
state = "message"
end