File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
lib/puppet/util/package/version Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -652,11 +652,6 @@ Lint/InheritException:
652
652
- ' lib/puppet/util/logging.rb'
653
653
- ' lib/puppet/util/retry_action.rb'
654
654
655
- # This cop supports unsafe auto-correction (--auto-correct-all).
656
- Lint/InterpolationCheck :
657
- Exclude :
658
- - ' lib/puppet/util/package/version/pip.rb'
659
-
660
655
# This cop supports safe auto-correction (--auto-correct).
661
656
Lint/LiteralInInterpolation :
662
657
Exclude :
Original file line number Diff line number Diff line change @@ -149,10 +149,10 @@ def compare(this, other)
149
149
return compare ( element , other . at ( index ) ) if element != other . at ( index )
150
150
end
151
151
elsif ( this . is_a? Array ) && !( other . is_a? Array )
152
- raise Puppet ::Error , ' Cannot compare #{this} (Array) with #{other} (#{other.class}). Only ±Float::INFINITY accepted.' unless other . abs == Float ::INFINITY
152
+ raise Puppet ::Error , " Cannot compare #{ this } (Array) with #{ other } (#{ other . class } ). Only ±Float::INFINITY accepted." unless other . abs == Float ::INFINITY
153
153
return other == -Float ::INFINITY ? 1 : -1
154
154
elsif !( this . is_a? Array ) && ( other . is_a? Array )
155
- raise Puppet ::Error , ' Cannot compare #{this} (#{this.class}) with #{other} (Array). Only ±Float::INFINITY accepted.' unless this . abs == Float ::INFINITY
155
+ raise Puppet ::Error , " Cannot compare #{ this } (#{ this . class } ) with #{ other } (Array). Only ±Float::INFINITY accepted." unless this . abs == Float ::INFINITY
156
156
return this == -Float ::INFINITY ? -1 : 1
157
157
end
158
158
this <=> other
You can’t perform that action at this time.
0 commit comments