Skip to content

Commit b8523b3

Browse files
Use shortcut
Co-authored-by: Rafael França <[email protected]>
1 parent bc8c042 commit b8523b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sprockets/path_utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def set_pipeline(path, mime_exts, pipeline_exts, pipeline)
162162
def split_subpath(path, subpath)
163163
return "" if path == subpath
164164
path = File.join(path, ''.freeze)
165-
if subpath and subpath.start_with?(path)
165+
if subpath&.start_with?(path)
166166
subpath[path.length..-1]
167167
else
168168
nil

0 commit comments

Comments
 (0)