fix(healthcheck/forbidden): remove unused option
All checks were successful
build / build (pull_request) Successful in 1m5s
build / trigger-build-image (pull_request) Has been skipped
build / build (push) Successful in 1m6s
build / trigger-build-image (push) Has been skipped

This commit is contained in:
zzjc1234 2024-10-17 16:11:53 +08:00
parent 64cbeef111
commit f6012bdd5e

View File

@ -39,14 +39,13 @@ var Version string
// Generally, err is used for runtime errors, and checkRes is used for the result of the checks. // Generally, err is used for runtime errors, and checkRes is used for the result of the checks.
func main() { func main() {
var gitWhitelist, metaFile []string var metaFile []string
showVersion := flag.Bool("version", false, "print current version") showVersion := flag.Bool("version", false, "print current version")
rootDir := flag.String("root", "", "") rootDir := flag.String("root", "", "")
size := flag.Float64("repoSize", 2, "maximum size of the repo in MiB") size := flag.Float64("repoSize", 2, "maximum size of the repo in MiB")
localList := flag.String("localList", "", "") localList := flag.String("localList", "", "")
checkFileNameList := flag.String("checkFileNameList", "", "Comma-separated list of files to check.") checkFileNameList := flag.String("checkFileNameList", "", "Comma-separated list of files to check.")
checkFileSumList := flag.String("checkFileSumList", "", "Comma-separated list of expected checksums.") checkFileSumList := flag.String("checkFileSumList", "", "Comma-separated list of expected checksums.")
parseMultiValueFlag(&gitWhitelist, "whitelist", "")
parseMultiValueFlag(&metaFile, "meta", "") parseMultiValueFlag(&metaFile, "meta", "")
flag.Parse() flag.Parse()
if *showVersion { if *showVersion {