Skip to content

Commit

Permalink
rubocop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sfisher committed Jan 6, 2020
1 parent 635d8c4 commit 9e15338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stash/stash_engine/app/models/stash_engine/counter_stat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def update_citation_count!
def calendar_week(time)
# %W calculates weeks based on starting Monday and not Sunday, %U is Sunday and %V is ???.
# This produces year-week string.
return (30.days.ago).strftime('%Y-%W') if time.nil? || !time.is_a?(Time)
return 30.days.ago.strftime('%Y-%W') if time.nil? || !time.is_a?(Time)

time.strftime('%Y-%W')
end
Expand Down

0 comments on commit 9e15338

Please sign in to comment.