Skip to content

Commit

Permalink
feat: skip check optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzhangyu committed May 17, 2024
1 parent 102eb7e commit 3c90dcc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/finder/src/validators/skip-isolated.validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ export class SkipIsolatedValidator implements ICloneValidator {
return skipIsolatedPathList.some(
(dirList) => {
const relA = dirList.find(dir => this.isRelativeMemo(clone.duplicationA.sourceId, dir));
if (!relA) {
return false;
}
const relB = dirList.find(dir => this.isRelativeMemo(clone.duplicationB.sourceId, dir));
return relA && relB && relA !== relB
return relB && relA !== relB;
}
);
}
Expand Down

0 comments on commit 3c90dcc

Please sign in to comment.