Skip to content

Commit 907335b

Browse files
committed
change: code style.
1 parent fbd6ed4 commit 907335b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/resty/etcd.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ function _M.new(opts)
119119
stats_store = http_host .. '/v2/stats/store',
120120
keys = http_host .. '/v2/keys',
121121
}
122-
}, mt)
122+
},
123+
mt)
123124
end
124125

125126
local content_type = {
@@ -232,7 +233,7 @@ local function decode_dir_value(body_node)
232233
return false
233234
end
234235

235-
if not type(body_node.nodes) == "table" then
236+
if type(body_node.nodes) ~= "table" then
236237
return false
237238
end
238239

0 commit comments

Comments
 (0)