Skip to content

Commit fc7a85d

Browse files
style(server): format legacy directory guard
1 parent 38ae8a4 commit fc7a85d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎apps/server/src/project/knowledge/codeIndexLocks.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,7 @@ function isT3Directory(
268268
LEGACY_INDEX_FILES.every((file) => !isRealDirectory(NodePath.join(path, file)))) &&
269269
entries.every((name) => {
270270
const entry = NodeFS.lstatSync(NodePath.join(path, name));
271-
return entry.isDirectory()
272-
? allowed === undefined
273-
: entry.isFile() && entry.nlink === 1;
271+
return entry.isDirectory() ? allowed === undefined : entry.isFile() && entry.nlink === 1;
274272
})
275273
);
276274
} catch {

0 commit comments

Comments
 (0)