bugfix: removed double env reading

This commit is contained in:
Baipyrus 2024-04-12 10:13:28 +02:00
parent e436850d7b
commit c1ca265f5a

View File

@ -94,8 +94,8 @@ func ConvertFallback(input string, fallback ...int) (int, error) {
func LoadMatrixData() (string, int, int) { func LoadMatrixData() (string, int, int) {
// Remote server info // Remote server info
API_SERVER_IP, _ := GetEnvFallback(os.Getenv("API_SERVER_IP"), "localhost") API_SERVER_IP, _ := GetEnvFallback("API_SERVER_IP", "localhost")
API_SERVER_PORT, _ := GetEnvFallback(os.Getenv("API_SERVER_PORT"), "8080") API_SERVER_PORT, _ := GetEnvFallback("API_SERVER_PORT", "8080")
// LED panel info // LED panel info
PUBLIC_LED_WIDTH, _ := ConvertFallback(os.Getenv("PUBLIC_LED_WIDTH"), 64) PUBLIC_LED_WIDTH, _ := ConvertFallback(os.Getenv("PUBLIC_LED_WIDTH"), 64)