Skip to content

Commit

Permalink
Merge pull request #226 from Igalia/lwsf_rename_pred
Browse files Browse the repository at this point in the history
Renamed misleading pred variable to otherkey
  • Loading branch information
kbara committed Feb 8, 2016
2 parents e0cbb17 + bc94956 commit ee955e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apps/lwaftr/conf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ local function required(key)
end
end

local function required_if(key, pred)
local function required_if(key, otherkey)
return function(config)
if config[pred] then
if config[otherkey] then
error('missing required configuration key "'..key..'"')
end
end
Expand Down

0 comments on commit ee955e4

Please sign in to comment.