Skip to content

Commit 839a1c0

Browse files
committed
get rid of warning
1 parent b9bed77 commit 839a1c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/package/openbsd.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def latest
9191
return match[2]
9292
end
9393

94-
vcmp = properties[:ensure].split('.').map { &:to_i } <=> match[2].split('.').map { &:to_i }
94+
vcmp = properties[:ensure].split('.').map { |s|s.to_i } <=> match[2].split('.').map { |s|s.to_i }
9595
if vcmp > 0
9696
# The locally installed package may actually be newer than what a mirror
9797
# has. Log it at debug, but ignore it otherwise.

0 commit comments

Comments
 (0)