From c1ca265f5a8265d287be0cab97ee7996bed64f9a Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 12 Apr 2024 10:13:28 +0200 Subject: [PATCH] bugfix: removed double env reading --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index b2ca908..6c3145b 100644 --- a/main.go +++ b/main.go @@ -94,8 +94,8 @@ func ConvertFallback(input string, fallback ...int) (int, error) { func LoadMatrixData() (string, int, int) { // Remote server info - API_SERVER_IP, _ := GetEnvFallback(os.Getenv("API_SERVER_IP"), "localhost") - API_SERVER_PORT, _ := GetEnvFallback(os.Getenv("API_SERVER_PORT"), "8080") + API_SERVER_IP, _ := GetEnvFallback("API_SERVER_IP", "localhost") + API_SERVER_PORT, _ := GetEnvFallback("API_SERVER_PORT", "8080") // LED panel info PUBLIC_LED_WIDTH, _ := ConvertFallback(os.Getenv("PUBLIC_LED_WIDTH"), 64)