Remove unnecessary path.normalize() calls

`path.join()` already normalizes.
This commit is contained in:
Richard Hansen 2021-02-10 01:12:43 -05:00 committed by John McLear
parent 84c1d74f8b
commit f868788417
6 changed files with 9 additions and 10 deletions

View file

@ -132,7 +132,7 @@ exports.makeAbsolute = (somePath) => {
return somePath;
}
const rewrittenPath = path.normalize(path.join(exports.findEtherpadRoot(), somePath));
const rewrittenPath = path.join(exports.findEtherpadRoot(), somePath);
absPathLogger.debug(`Relative path "${somePath}" can be rewritten to "${rewrittenPath}"`);
return rewrittenPath;