Skip to content

Commit

Permalink
chore(*): just remove variables that are not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
bungle committed Sep 19, 2023
1 parent 5eecd21 commit 248c39a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/resty/aws/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ local tablex = require("pl.tablex")
local lookup_helper = function(self, key) -- signature to match __index meta-method
if type(key) == "string" then
local lckey = key:lower()
for k,v in pairs(self) do
for k in pairs(self) do
if type(k) == "string" and k:lower() == lckey then
error(("key '%s' not found, did you mean '%s'?"):format(key, k), 2)
end
Expand Down Expand Up @@ -193,7 +193,7 @@ do
-- @param service service-instance being created; field `aws` is the aws instance,
-- `config` is the service instance config, `api` the service api.
function AWS.configureEndpoint(service)
for i, key in ipairs(derivedKeys(service)) do
for _, key in ipairs(derivedKeys(service)) do

local region_rule_config = aws_config.region.rules[key] --> contains regions templates
if type(region_rule_config) == 'string' then
Expand Down
2 changes: 1 addition & 1 deletion src/resty/aws/request/validate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ local validators do
local list_checks do
local function get_length(t) -- gets length of an array (with holes)
local size = 0
for k,v in pairs(t) do
for k in pairs(t) do
if type(k) ~= "number" then
return nil, "list contains non-numeric indices"
end
Expand Down

0 comments on commit 248c39a

Please sign in to comment.