mirror of
https://github.com/usetrmnl/plugins.git
synced 2026-04-29 13:32:45 -07:00
Update github_commit_graph.rb
fixed syntax
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user