Merge pull request 'doctor: Don't say All done when no checks were run' (#1907) from algernon/forgejo:f/1905-doctor-all-done into forgejo-dependency

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/1907
This commit is contained in:
Earl Warren 2023-12-09 22:09:29 +00:00
commit 61ff531c98

View file

@ -104,7 +104,11 @@ func RunChecks(ctx context.Context, colorize, autofix bool, checks []*Check) err
logger.Info("OK")
}
}
logger.Info("\nAll done.")
if len(checks) > 0 {
logger.Info("\nAll done.")
} else {
logger.Info("\nNo checks to run.")
}
return nil
}