chore: Prettier fix formatting
This commit is contained in:
1 parent
9de7253998
commit
25cd7cc8e2
106 files changed
+1624
-5278
No files matched your search
+1
-4
@@ -72,10 +72,7 @@ function normalizePath(p: string): string {
|
||||
let normalized = path.normalize(p)
|
||||
// however it doesn't remove trailing slashes
|
||||
// remove trailing slash, except for root paths
|
||||
if (
|
||||
normalized.length > 1 &&
|
||||
(normalized.endsWith("/") || normalized.endsWith("\\"))
|
||||
) {
|
||||
if (normalized.length > 1 && (normalized.endsWith("/") || normalized.endsWith("\\"))) {
|
||||
normalized = normalized.slice(0, -1)
|
||||
}
|
||||
return normalized
|
||||
|
||||
Reference in new issue
Block a user