Skip to content

Commit 6ec072a

Browse files
committed
Renaming variable
1 parent e55721a commit 6ec072a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/build-bundler.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ module.exports = ({ source, target, fingerprint }) => {
1010
// TODO: Only copy changed files
1111
return _ => {
1212
readdir(source).then(sources => {
13-
return Promise.all(sources.map(filePath => {
14-
let sourcePath = path.join(source, filePath);
13+
return Promise.all(sources.map(fileName => {
14+
let sourcePath = path.join(source, fileName);
1515

1616
return readFile(sourcePath).then(content => {
1717
if(fingerprint) {
18-
filePath = generateFingerprint(filePath, content);
18+
fileName = generateFingerprint(fileName, content);
1919
}
2020

21-
let targetPath = path.join(target, filePath);
21+
let targetPath = path.join(target, fileName);
2222

2323
return createFile(targetPath, content);
2424
});

0 commit comments

Comments
 (0)