Skip to content

Commit ad7314f

Browse files
author
Kevin Paulisse
committed
Drop environments/production from the start of file names
1 parent 5755b16 commit ad7314f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/octocatalog-diff/catalog.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def format_source_file_line(source_file, line_number)
222222
else
223223
source_file
224224
end
225-
"(#{filename}:#{line_number})"
225+
"(#{filename.sub(%r{^environments/production/}, '')}:#{line_number})"
226226
end
227227

228228
# Private method: Format the missing references into human-readable text

0 commit comments

Comments
 (0)