Skip to content

Commit 10250f8

Browse files
committed
style: pass &:to_i as an argument to collect instead of a block
1 parent feb6164 commit 10250f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tasks/toolchains/android.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Set ANDROID_NDK_HOME environment variable or set :ndk_home parameter
7272
next nil unless path[-1] == "*"
7373
dirs = Dir.glob(path).collect do |d|
7474
m = d.match(/(\d+)\.(\d+)\.(\d+)$/)
75-
m ? [m[1], m[2], m[3]].collect { |v| v.to_i } : nil
75+
m ? [m[1], m[2], m[3]].collect(&:to_i) : nil
7676
end
7777
dirs.compact!
7878
dirs.sort! do |before, after|

0 commit comments

Comments
 (0)