Skip to content

Commit

Permalink
Remove extra guard in params.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Arndt <git@p.arndt.io>
  • Loading branch information
danhealy and parndt authored Nov 17, 2023
1 parent 777dd9f commit d7adbbc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/hanami/action/params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,6 @@ def self.params(&blk)
# end
# end
def self.rule(*keys, &blk)
unless self._validator
raise ArgumentError.new(
"The params schema must be defined prior to adding rules."
)
end
self._validator.class.rule(*keys, &blk)
end

Expand Down

0 comments on commit d7adbbc

Please sign in to comment.