Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gardleopard committed Sep 9, 2022
1 parent 36bd020 commit 0662bb0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/unleash/constraint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ def validate_constraint_value_type(operator, value)
if LIST_OPERATORS.include?(operator) && value.is_a?(String)
Unleash.logger.info "value is not an Array, operator is expecting an Array"
end
if !LIST_OPERATORS.include?(operator) && value.is_a?(Array)
Unleash.logger.info "value is an Array, operator is not an Array operator"
end
Unleash.logger.info "value is an Array, operator is not an Array operator" if !LIST_OPERATORS.include?(operator) && value.is_a?(Array)
end

private
Expand Down

0 comments on commit 0662bb0

Please sign in to comment.