Use frozen constant instead of unmutated mutable literal
This commit is contained in:
parent
6a7b8bca52
commit
5e7bfc0812
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ module Mutant
|
|||
# @api private
|
||||
#
|
||||
def namespace
|
||||
match[__method__] || ''
|
||||
match[__method__] || EMPTY_STRING
|
||||
end
|
||||
|
||||
end # Recursive
|
||||
|
|
|
@ -12,7 +12,7 @@ module Mutant
|
|||
gvasgn: '$',
|
||||
cvasgn: '@@',
|
||||
ivasgn: '@',
|
||||
lvasgn: ''
|
||||
lvasgn: EMPTY_STRING
|
||||
}
|
||||
|
||||
MAP = IceNine.deep_freeze(
|
||||
|
|
Loading…
Add table
Reference in a new issue