From 62a93be0fba3214d48d86a9588c8498445f3d80e Mon Sep 17 00:00:00 2001 From: minoplhy Date: Wed, 10 Apr 2024 00:43:40 +0700 Subject: [PATCH] chibisafe_netstorage_middleman : remove unused dependencies --- go.sum | 2 -- main.go | 6 ------ 2 files changed, 8 deletions(-) diff --git a/go.sum b/go.sum index d61b19e..e69de29 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +0,0 @@ -github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= -github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= diff --git a/main.go b/main.go index 096a4e8..700b8e2 100644 --- a/main.go +++ b/main.go @@ -7,7 +7,6 @@ import ( "net/http" "os" - "github.com/joho/godotenv" "github.com/minoplhy/chibisafe_netstorage_middleman/src/handler" ) @@ -92,11 +91,6 @@ func uploadHandler(w http.ResponseWriter, r *http.Request) { } func main() { - err := godotenv.Load() - if err != nil { - log.Fatal("Cannot load .env file!") - } - Chibisafe_basepath := os.Getenv("CHIBISAFE_BASEPATH") Host := os.Getenv("HOST")