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 @@ -628,11 +628,6 @@ Lint/InheritException:
628
628
- ' lib/puppet/util/logging.rb'
629
629
- ' lib/puppet/util/retry_action.rb'
630
630
631
- # This cop supports unsafe auto-correction (--auto-correct-all).
632
- Lint/InterpolationCheck :
633
- Exclude :
634
- - ' lib/puppet/util/package/version/pip.rb'
635
-
636
631
# This cop supports safe auto-correction (--auto-correct).
637
632
Lint/LiteralInInterpolation :
638
633
Exclude :
Original file line number Diff line number Diff line change @@ -150,10 +150,10 @@ def compare(this, other)
150
150
return compare ( element , other . at ( index ) ) if element != other . at ( index )
151
151
end
152
152
elsif ( this . is_a? Array ) && !( other . is_a? Array )
153
- raise Puppet ::Error , ' Cannot compare #{this} (Array) with #{other} (#{other.class}). Only ±Float::INFINITY accepted.' unless other . abs == Float ::INFINITY
153
+ raise Puppet ::Error , " Cannot compare #{ this } (Array) with #{ other } (#{ other . class } ). Only ±Float::INFINITY accepted." unless other . abs == Float ::INFINITY
154
154
return other == -Float ::INFINITY ? 1 : -1
155
155
elsif !( this . is_a? Array ) && ( other . is_a? Array )
156
- raise Puppet ::Error , ' Cannot compare #{this} (#{this.class}) with #{other} (Array). Only ±Float::INFINITY accepted.' unless this . abs == Float ::INFINITY
156
+ raise Puppet ::Error , " Cannot compare #{ this } (#{ this . class } ) with #{ other } (Array). Only ±Float::INFINITY accepted." unless this . abs == Float ::INFINITY
157
157
return this == -Float ::INFINITY ? -1 : 1
158
158
end
159
159
this <=> other
You can’t perform that action at this time.
0 commit comments