summaryrefslogtreecommitdiffstats
path: root/lib/redmine/diff_table.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/diff_table.rb')
-rw-r--r--lib/redmine/diff_table.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/redmine/diff_table.rb b/lib/redmine/diff_table.rb
index a768d9af9..55e40a667 100644
--- a/lib/redmine/diff_table.rb
+++ b/lib/redmine/diff_table.rb
@@ -82,6 +82,7 @@ module Redmine
private
def file_name=(arg)
+ # rubocop:disable Style/FileNull
both_git_diff = false
if file_name.nil?
@git_diff = true if %r{^(a/|/dev/null)}.match?(arg)
@@ -106,6 +107,7 @@ module Redmine
else
@file_name = arg
end
+ # rubocop:enable Style/FileNull
end
def diff_for_added_line