Skip to content

Commit

Permalink
fix(protobuf) typo on encoding array-style tables as ListValue (#8621)
Browse files Browse the repository at this point in the history
  • Loading branch information
javierguerragiraldez authored Apr 1, 2022
1 parent 4d4b90c commit 2536a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/tools/protobuf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ do
local struct_v = nil

if t == "table" then
if t[1] ~= nil then
if v[1] ~= nil then
list_v = structpb_list(v)
else
struct_v = structpb_struct(v)
Expand Down

0 comments on commit 2536a95

Please sign in to comment.