Commit 817a2db8 authored by Peter Leitzen's avatar Peter Leitzen

Improve performance of Gitlab::BacktraceCleaner

Prefer Regexp#match?(String) over String#match(Regexp).
parent d91c949f
---
title: Improve performance of Gitlab::BacktraceCleaner
merge_request: 40180
author:
type: performance
......@@ -31,7 +31,7 @@ module Gitlab
return unless backtrace
Array(Rails.backtrace_cleaner.clean(backtrace)).reject do |line|
line.match(IGNORED_BACKTRACES_REGEXP)
IGNORED_BACKTRACES_REGEXP.match?(line)
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment