Skip to content

Commit

Permalink
simplfy scheme.
Browse files Browse the repository at this point in the history
  • Loading branch information
pehlicd committed Sep 10, 2023
1 parent 0b8e92d commit 7eca249
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down

0 comments on commit 7eca249

Please sign in to comment.