Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
CuddlyBunion341 committed Jan 14, 2025
1 parent 5ac2014 commit 4b5fc69
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/helpers/timer_sessions_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ def sum_work_hours(timer_sessions)
def issue_information(issue)
subject = issue.subject
issue_information = issue.id.to_s

truncated_subject = subject[0..(MAX_SUBJECT_LENGTH - issue_information.length)]

[
issue_information,
"[#{issue.project.name}] #{subject[0..(MAX_SUBJECT_LENGTH - issue_information.length)]}#{subject_label_trail(subject)}"
"[#{issue.project.name}] #{truncated_subject}#{subject_label_trail(subject)}"
].join(': ')
end

Expand Down

0 comments on commit 4b5fc69

Please sign in to comment.