mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 16:49:06 +01:00
auto-fixed prefer-const violation
This commit is contained in:
@@ -149,7 +149,7 @@ export function normalizePath(parts: string[]): string {
|
||||
export function joinPath(uriString: string, ...paths: string[]): string {
|
||||
const uri = URI.parse(uriString);
|
||||
const parts = uri.path.split('/');
|
||||
for (let path of paths) {
|
||||
for (const path of paths) {
|
||||
parts.push(...path.split('/'));
|
||||
}
|
||||
return uri.with({ path: normalizePath(parts) }).toString();
|
||||
|
||||
Reference in New Issue
Block a user