Skip to content

Commit

Permalink
fixed issues#7,issues#8
Browse files Browse the repository at this point in the history
  • Loading branch information
anjia0532 authored Jul 12, 2018
1 parent 99b56d7 commit d610f4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/resty/maxminddb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ local function _dump_entry_data_list(entry_data_list,status,resultTab)
end

size = size -1
-- thanks for https://github.com/anjia0532/lua-resty-maxminddb/issues/7
if size > 0 then
table.insert(resultTab,",")
end
end
table.insert(resultTab,"]")

Expand Down

1 comment on commit d610f4e

@anjia0532
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed #8
fixed #7

Please sign in to comment.