Skip to content

Commit 3d2868c

Browse files
committed
Fix "Redundant return detected"
1 parent f6a1a12 commit 3d2868c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/line/bot/util.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ module Bot
1717
module Util
1818
# @return [String]
1919
def self.camelize(string)
20-
ret = string.split(/_|(?=[A-Z])/).map(&:capitalize).join
21-
return ret
20+
string.split(/_|(?=[A-Z])/).map(&:capitalize).join
2221
end
2322
end
2423
end

0 commit comments

Comments
 (0)