Update github_commit_graph.rb

fixed syntax
This commit is contained in:
Brad P
2025-04-24 08:23:55 -05:00
committed by GitHub
parent 3dd1fd372b
commit 1bba227a81
@@ -79,9 +79,7 @@ module Plugins
streak = 0
# The current day can count towards the streak but it shouldn't break the streak
if (days.last()['contributionCount']).positive?
streak += 1
end
streak += 1 if days.last['contributionCount'].positive?
days[0..-2].reverse_each do |day|
break if (day['contributionCount']).zero?