Skip to content

Commit

Permalink
policy_chain: simplify freeze of the chain
Browse files Browse the repository at this point in the history
freeze() does not need to be exposed. We can remove it and perform the
operation inline as it's just setting one attribute to true.
  • Loading branch information
davidor committed Nov 14, 2017
1 parent 69ce941 commit a6b047a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apicast/src/policy_chain.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ function _M.new(list)

local self = setmetatable(chain, mt)
chain.config = self:export()
return self:freeze()
end

function _M:freeze()
self.frozen = true
return self
end
Expand Down

0 comments on commit a6b047a

Please sign in to comment.