Skip to content

Commit 025d585

Browse files
committedOct 3, 2019
chore: clean up path.join call for readability
1 parent 2128770 commit 025d585

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎lib/content/path.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ module.exports = contentPath
1515
function contentPath (cache, integrity) {
1616
const sri = ssri.parse(integrity, { single: true })
1717
// contentPath is the *strongest* algo given
18-
return path.join.apply(
19-
path,
20-
[contentDir(cache), sri.algorithm].concat(hashToSegments(sri.hexDigest()))
18+
return path.join(
19+
contentDir(cache),
20+
sri.algorithm,
21+
...hashToSegments(sri.hexDigest())
2122
)
2223
}
2324

0 commit comments

Comments
 (0)
Please sign in to comment.