Skip to content

Commit 526eba2

Browse files
committed
style: readability
1 parent fc7c1c4 commit 526eba2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/resty/redis/connector.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,12 @@ function _M.new(config)
136136
return nil, config -- err
137137
else
138138
-- In proxied Redis mode disable default commands
139-
if config.connection_is_proxied == true
140-
and not next(config.disabled_commands) then
139+
if config.connection_is_proxied == true and
140+
not next(config.disabled_commands) then
141+
141142
config.disabled_commands = default_disabled_commands
142143
end
144+
143145
return setmetatable({
144146
config = setmetatable(config, fixed_field_metatable)
145147
}, mt)

0 commit comments

Comments
 (0)