mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-17 19:46:18 +00:00
[GITEA] doctor: Don't say All done when no checks were run
When there were no checks run, don't say "All done", but "No checks to
run" instead, to make it clear what happened.
Addresses another part of #1905.
Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
(cherry picked from commit d75f13bde7
)
This commit is contained in:
parent
d847469ea2
commit
df6d98799c
|
@ -104,7 +104,11 @@ func RunChecks(ctx context.Context, colorize, autofix bool, checks []*Check) err
|
||||||
logger.Info("OK")
|
logger.Info("OK")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
logger.Info("\nAll done.")
|
if len(checks) > 0 {
|
||||||
|
logger.Info("\nAll done.")
|
||||||
|
} else {
|
||||||
|
logger.Info("\nNo checks to run.")
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue