Skip to content

Commit

Permalink
Don't modify frozen strings
Browse files Browse the repository at this point in the history
  • Loading branch information
hennevogel authored and danidoni committed Mar 15, 2022
1 parent 2c8b2bf commit 46e1da7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/app/helpers/webui/webui_helper.rb
Expand Up @@ -103,7 +103,8 @@ def image_template_icon(template)
end

def repository_status_icon(status:, details: nil, html_class: '')
outdated = status.sub!(/^outdated_/, '')
outdated = status.start_with?('outdated_')
status = status.sub('outdated_', '')
description = outdated ? 'State needs recalculations, former state was: ' : ''
description << repo_status_description(status)
description << " (#{details})" if details
Expand Down

0 comments on commit 46e1da7

Please sign in to comment.