about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-04-25 12:58:33 +0200
committerAlan Pearce2024-04-25 13:02:02 +0200
commitc798e8e736c0649008cade337158399470a9099b (patch)
tree18f519401f9342f7211f79c922f6e83ae53da3fa
parentf94882b9001f3b0855e26b26b4a84b96e3deb22b (diff)
downloadwebsite-c798e8e736c0649008cade337158399470a9099b.tar.lz
website-c798e8e736c0649008cade337158399470a9099b.tar.zst
website-c798e8e736c0649008cade337158399470a9099b.zip
config: remove unused port variable
-rw-r--r--internal/config/config.go7
1 files changed, 0 insertions, 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
 }