Skip to content

Commit ecddc3b

Browse files
ci(lint): auto-fix
1 parent 8013679 commit ecddc3b

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

packages/typescript/lib/node/proxyCreateProgram.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,26 @@ import { createResolveModuleName } from '../resolveModuleName';
44
import { decorateProgram } from './decorateProgram';
55

66
const arrayEqual = (a: readonly any[], b: readonly any[]) => {
7-
if (a.length !== b.length) return false;
7+
if (a.length !== b.length) {
8+
return false;
9+
}
810
for (let i = 0; i < a.length; i++) {
9-
if (a[i] !== b[i]) return false;
11+
if (a[i] !== b[i]) {
12+
return false;
13+
}
1014
}
1115
return true;
1216
};
1317
const objectEqual = (a: any, b: any) => {
1418
const keysA = Object.keys(a);
1519
const keysB = Object.keys(b);
16-
if (keysA.length !== keysB.length) return false;
20+
if (keysA.length !== keysB.length) {
21+
return false;
22+
}
1723
for (const key of keysA) {
18-
if (a[key] !== b[key]) return false;
24+
if (a[key] !== b[key]) {
25+
return false;
26+
}
1927
}
2028
return true;
2129
};

0 commit comments

Comments
 (0)