Skip to content

Commit 5b28b60

Browse files
committed
Fix ruby 3.4 frozen string literal warnings
1 parent 5f91437 commit 5b28b60

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## [Unreleased]
22
### Fixed
33
* Support Ruby 3.4, Rails 8.0
4+
* Fix ruby 3.4 frozen string literal warnings
45

56
## 2.4.2 / 2025-03-23
67
* fix link with icon button style

app/helpers/ndr_error/errors_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def highlighted_trace_for(error)
1111

1212
error.backtrace.map do |line|
1313
css_classes = 'trace-item'
14-
css_classes << ' stack-only' unless highlighting.include?(line)
14+
css_classes += ' stack-only' unless highlighting.include?(line)
1515

1616
content_tag(:span, line, class: css_classes)
1717
end
@@ -96,7 +96,7 @@ def previous_button_for(error)
9696

9797
def next_button_for(error)
9898
css = 'btn btn-outline-secondary'
99-
css << ' disabled' if error.nil?
99+
css += ' disabled' if error.nil?
100100
text = bootstrap_icon_tag('chevron-right', :bi)
101101
path = error.nil? ? '#' : error_fingerprint_path(error.error_fingerprint, log_id: error)
102102

0 commit comments

Comments
 (0)