From 3713d774ec8f1b7402730e3f640a107849a50536 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 23 Sep 2025 00:40:21 +0100 Subject: [PATCH] Refactor Signed-off-by: Oliver Davies --- go-api/utils/utils.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/go-api/utils/utils.go b/go-api/utils/utils.go index bc72ea5..7d3a449 100644 --- a/go-api/utils/utils.go +++ b/go-api/utils/utils.go @@ -8,9 +8,7 @@ import ( ) func GetPort() string { - port := os.Getenv("API_PORT") - - if port != "" { + if port := os.Getenv("API_PORT"); port != "" { return port }