Skip to content

Commit a026c18

Browse files
committed
Fix cop
1 parent bcb9461 commit a026c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grape/router.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class Router
55
attr_reader :map, :compiled
66

77
def self.normalize_path(path)
8-
return '/'.dup unless path
8+
return +'/' unless path
99

1010
# Fast path for the overwhelming majority of paths that don't need to be normalized
1111
return path.dup if path == '/' || (path.start_with?('/') && !path.end_with?('/') && !path.match?(%r{%|//}))

0 commit comments

Comments
 (0)