Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 30, 2021. It is now read-only.

Commit b874191

Browse files
authored
fulldest already ends with path.sep, don't add it again. (#1033)
1 parent bf41a05 commit b874191

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/generate-v1-cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function checkDefaultCacheKeySpecs(destdir) {
179179

180180
const allfiles = glob(pattern);
181181
const folders = allfiles
182-
.map(f => f.replace(fulldest + path.sep, ''))
182+
.map(f => f.replace(fulldest, ''))
183183
.map(f => f.split(path.sep))
184184
.map(a => path.join(a[0], a[1]))
185185
.filter((f, index, self) => {

0 commit comments

Comments
 (0)