Skip to content

Commit

Permalink
Remove needless array expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmacphersonmusic committed May 15, 2015
1 parent 8485c3d commit 0015c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/music_theory/harmonize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Harmonize

def initialize(*things_to_flatten)
@samples = []
[*things_to_flatten].each do |group|
things_to_flatten.each do |group|
group.each_with_index do |value, i|
@samples[i] ||= 0
@samples[i] += value
Expand Down

0 comments on commit 0015c5c

Please sign in to comment.