From ebc784970e0360123ee3760d4423d82f2dcce8c4 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 24 Nov 2025 09:26:32 +0000 Subject: [PATCH] Update main.go --- main.go | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/main.go b/main.go index 4f37cef..8b25719 100644 --- a/main.go +++ b/main.go @@ -7,21 +7,9 @@ import ( ) func main() { - fmt.Println("Read env from gitea file") + fmt.Println("Read env from Gitea") for _, v := range os.Environ() { fmt.Println(v) } - - giteaEnvFile, ok := os.LookupEnv("GITEA_ENV") - if !ok { - log.Fatalln("Gitea env file not found") - } - - raw, err := os.ReadFile(giteaEnvFile) - if err != nil { - log.Fatalln("Gitea env file read error:", err) - } - - fmt.Println(string(raw)) }