From 3b24f4fd79e5f41f03549f91291825f26c1d6345 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Thu, 5 Dec 2024 19:00:30 -0500 Subject: [PATCH] fix(healthcheck): typo --- cmd/repo-health-checker/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/repo-health-checker/main.go b/cmd/repo-health-checker/main.go index ef08034..45a6ae3 100644 --- a/cmd/repo-health-checker/main.go +++ b/cmd/repo-health-checker/main.go @@ -71,9 +71,9 @@ func prepareTeapotCheck() ( actor = os.Getenv("GITHUB_ACTOR") repository := os.Getenv("GITHUB_REPOSITORY") if actor == "" || - repository != "" || + repository == "" || strings.Count(repository, "/") != 1 || - confPath != "" { + confPath == "" { slog.Error("teapot env not set", "actor", actor, "repository", repository, "confPath", confPath, "env", os.Environ()) err = fmt.Errorf("teapot env not set") return