Skip to content

Commit 0c13a94

Browse files
committed
fix format
1 parent f66a341 commit 0c13a94

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

editors/code/src/util.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,18 @@ export const isWindows = process.platform === "win32";
304304

305305
export function isWindowsDriveLetter(code: number): boolean {
306306
// Copied from https://github.com/microsoft/vscode/blob/02c2dba5f2669b924fd290dff7d2ff3460791996/src/vs/base/common/extpath.ts#L265-L267
307-
return code >= /* CharCode.A */ 65 && code <= /* CharCode.Z */ 90 || code >= /* CharCode.a */ 97 && code <= /* CharCode.z */ 122;
307+
return (
308+
(code >= /* CharCode.A */ 65 && code <= /* CharCode.Z */ 90) ||
309+
(code >= /* CharCode.a */ 97 && code <= /* CharCode.z */ 122)
310+
);
308311
}
309312
export function hasDriveLetter(path: string, isWindowsOS: boolean = isWindows): boolean {
310313
// Copied from https://github.com/microsoft/vscode/blob/02c2dba5f2669b924fd290dff7d2ff3460791996/src/vs/base/common/extpath.ts#L324-L330
311314
if (isWindowsOS) {
312-
return isWindowsDriveLetter(path.charCodeAt(0)) && path.charCodeAt(1) === /* CharCode.Colon */ 58;
315+
return (
316+
isWindowsDriveLetter(path.charCodeAt(0)) &&
317+
path.charCodeAt(1) === /* CharCode.Colon */ 58
318+
);
313319
}
314320

315321
return false;

0 commit comments

Comments
 (0)