Skip to content

Commit

Permalink
Fix: 'inject' was renamed 'reduce' in crystal
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbaddaden committed Jan 22, 2016
1 parent 0418acb commit 6c44184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/versions.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module Shards
def resolve_versions(versions, requirements)
requirements
.map { |requirement| resolve_requirement(versions, requirement) }
.inject(versions) { |a, e| a & e }
.reduce(versions) { |a, e| a & e }
.sort { |a, b| natural_sort(a, b) }
end

Expand Down

0 comments on commit 6c44184

Please sign in to comment.