lib/spoom/timeline.rb in spoom-1.1.8 vs lib/spoom/timeline.rb in spoom-1.1.9

- old
+ new

@@ -35,19 +35,19 @@ # Return one commit for each date in `dates` sig { params(dates: T::Array[Time]).returns(T::Array[String]) } def commits_for_dates(dates) dates.map do |t| - out, _, _ = Spoom::Git.log( + result = Spoom::Git.log( "--since='#{t}'", "--until='#{t.to_date.next_month}'", "--format='format:%h'", "--author-date-order", "-1", path: @path, ) - next if out.empty? - out + next if result.out.empty? + result.out end.compact.uniq end end end