Skip to content

Commit a237354

Browse files
committed
fixup! refactor(ng-dev/ts-circular-dependencies): reorder processing of warnings and golden existence check
1 parent dcc6eea commit a237354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ng-dev/ts-circular-dependencies/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ export function main(
119119
return 1;
120120
}
121121
} else {
122+
// No golden file exists
122123
if (approve) {
123124
Log.error(
124125
`x Cannot approve circular depdencies within this repository as no golden file exists.`,
125126
);
126127
return 1;
127128
}
128-
// No golden file exists
129129
if (cycles.length > 0) {
130130
Log.error(`x No circular dependencies are allow within this repository.`);
131131
return 1;

0 commit comments

Comments
 (0)