Skip to content

Commit 408de63

Browse files
committed
fix
1 parent 15bf56e commit 408de63

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

services/doctor/actions.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ func disableMirrorActionsUnit(ctx context.Context, logger log.Logger, autofix bo
4242
} else {
4343
logger.Warn("Found %d mirrors with actions unit enabled", len(reposToFix))
4444
}
45-
46-
if !autofix {
45+
if !autofix || len(reposToFix) == 0 {
4746
return nil
4847
}
4948

@@ -52,7 +51,6 @@ func disableMirrorActionsUnit(ctx context.Context, logger log.Logger, autofix bo
5251
return err
5352
}
5453
}
55-
5654
logger.Info("Fixed %d mirrors with actions unit enabled", len(reposToFix))
5755

5856
return nil

0 commit comments

Comments
 (0)