Skip to content

Commit 0b70ef3

Browse files
authored
Merge pull request #200 from koic/remove_redundant_string_dup
Remove redundant `String#dup`
2 parents 85b81a6 + 0429284 commit 0b70ef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mcp/string_utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def demodulize(path)
1515
end
1616

1717
def underscore(camel_cased_word)
18-
camel_cased_word.dup
18+
camel_cased_word
1919
.gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
2020
.gsub(/([a-z\d])([A-Z])/, '\1_\2')
2121
.tr("-", "_")

0 commit comments

Comments
 (0)