Commit 5b525e44ef709b9ad65e6693c6e805025d77e758

Authored by Nathan Broadbent
1 parent 291eac73
Exists in master and in 1 other branch production

Fix for blank line numbers - use .blank? [ci skip]

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/notices_helper.rb
@@ -5,7 +5,7 @@ module NoticesHelper @@ -5,7 +5,7 @@ module NoticesHelper
5 end 5 end
6 6
7 def line_number_with_link(app, line) 7 def line_number_with_link(app, line)
8 - return " ".html_safe unless line['number'] 8 + return " ".html_safe if line['number'].blank?
9 if Notice.in_app_backtrace_line?(line) 9 if Notice.in_app_backtrace_line?(line)
10 return link_to_github(app, line, line['number']) if app.github_url? 10 return link_to_github(app, line, line['number']) if app.github_url?
11 if app.issue_tracker && app.issue_tracker.respond_to?(:url_to_file) 11 if app.issue_tracker && app.issue_tracker.respond_to?(:url_to_file)