Skip to content

Commit

Permalink
fix(globalpatches) properly assign incr init values
Browse files Browse the repository at this point in the history
  • Loading branch information
p0pr0ck5 committed Jul 10, 2017
1 parent 786f171 commit 3d8dc15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/core/globalpatches.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ return function(options)
if not init then
return nil, "not found"
else
self.data[key].value = init
self.data[key] = { value = init }
end
elseif type(self.data[key].value) ~= "number" then
return nil, "not a number"
Expand Down

0 comments on commit 3d8dc15

Please sign in to comment.