Project

General

Profile

Actions

Refactor #19700

closed

enable rubocop Performance/RedundantMerge and Performance/RedundantMatch

Added by Ohad Levy over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

changes lines such as:

not_found_message.merge! :message => options
to:
not_found_message[:message] = options

and
converts str.match()
to
str =~ ()

Actions

Also available in: Atom PDF