Skip to content

Commit 346247a

Browse files
committed
Auto-format
1 parent 95f4431 commit 346247a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/knip/src/graph/build.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ export async function build({
158158

159159
if (definitionPaths.length > 0) {
160160
debugLogArray(name, 'Definition paths', definitionPaths);
161-
for (const id of definitionPaths) inputs.add(toProductionEntry(tryRealpath(id), { containingFilePath: tsConfigFilePath }));
161+
for (const id of definitionPaths)
162+
inputs.add(toProductionEntry(tryRealpath(id), { containingFilePath: tsConfigFilePath }));
162163
}
163164

164165
const sharedGlobOptions = { cwd: options.cwd, dir, gitignore: options.gitignore };

packages/knip/src/typescript/visitors/walk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ const _collectBindingNames = (pattern: any, range: [number, number]) => {
226226
const _addParamShadows = (params: any, body: any) => {
227227
if (!body || !params) return;
228228
const range: [number, number] = [body.start, body.end];
229-
const items = Array.isArray(params) ? params : params.items ?? params;
229+
const items = Array.isArray(params) ? params : (params.items ?? params);
230230
for (const param of items) _collectBindingNames(param, range);
231231
};
232232

0 commit comments

Comments
 (0)