Skip to content

Commit

Permalink
removed unnecessary duplicate constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
nanobowers committed May 13, 2024
1 parent e9d30c7 commit 9ce021f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/optimist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ def conflicts(*syms)
## Marks two (or more!) options as required but mutually exclusive.
def either(*syms)
syms.each { |sym| raise ArgumentError, "unknown option '#{sym}'" unless @specs[sym] }
@constraints << ConflictConstraint.new(syms)
@constraints << EitherConstraint.new(syms)
end

Expand Down

0 comments on commit 9ce021f

Please sign in to comment.