tools: Don't use resolved path unless necessary
This commit is contained in:
parent
d1ffa2c942
commit
a091b08259
|
|
@ -418,9 +418,9 @@ async function addCopyrights(path) {
|
||||||
|
|
||||||
let pathStat = await FSPROMISES.stat(path);
|
let pathStat = await FSPROMISES.stat(path);
|
||||||
if (pathStat.isDirectory()) {
|
if (pathStat.isDirectory()) {
|
||||||
await addCopyrights(PATH.resolve(path));
|
await addCopyrights(path);
|
||||||
} else {
|
} else {
|
||||||
await addCopyright(PATH.resolve(path));
|
await addCopyright(path);
|
||||||
}
|
}
|
||||||
console.log("Done");
|
console.log("Done");
|
||||||
})();
|
})();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue