From c798e8e736c0649008cade337158399470a9099b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 25 Apr 2024 12:58:33 +0200 Subject: config: remove unused port variable --- internal/config/config.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index d2eabf0..3abe6a6 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -5,7 +5,6 @@ import ( "log/slog" "net/url" "os" - "strconv" "github.com/BurntSushi/toml" "github.com/pkg/errors" @@ -34,7 +33,6 @@ type Config struct { DefaultLanguage string `toml:"default_language"` BaseURL URL `toml:"base_url"` RedirectOtherHostnames bool `toml:"redirect_other_hostnames"` - Port uint64 Production bool Title string Email string @@ -71,10 +69,5 @@ func GetConfig() (*Config, error) { return nil, errors.Wrap(err, "config error") } } - port, err := strconv.ParseUint(getEnvFallback("PORT", "3000"), 10, 16) - if err != nil { - return nil, err - } - config.Port = port return &config, nil } -- cgit 1.4.1