From 7eca249a09ef9d690b4b21dc0d13cbea59e41e2e Mon Sep 17 00:00:00 2001 From: Furkan Pehlivan Date: Sun, 10 Sep 2023 15:53:41 +0300 Subject: [PATCH] simplfy scheme. --- pkg/config.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/config.go b/pkg/config.go index 30b6ac0..72bfa98 100644 --- a/pkg/config.go +++ b/pkg/config.go @@ -59,9 +59,7 @@ func initConfig() Config { viper.SetConfigType("yaml") // Configuration file type viper.AddConfigPath(os.Getenv("HOME")) // Search for the configuration file in the $HOME directory - if *insecure { - scheme = "http" - } else { + if !*insecure { scheme = "https" }