Skip to content

Commit 1c46123

Browse files
committed
remove deprecation warning
1 parent 8a010f7 commit 1c46123

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

utils/env/env.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ package env
33
import (
44
"os"
55
"strconv"
6-
"strings"
76

87
middlewares "github.com/codeshelldev/secured-signal-api/internals/proxy/middlewares"
98
"github.com/codeshelldev/secured-signal-api/utils"
10-
"github.com/codeshelldev/secured-signal-api/utils/docker"
119
log "github.com/codeshelldev/secured-signal-api/utils/logger"
1210
)
1311

@@ -108,15 +106,6 @@ func Load() {
108106
}
109107

110108
if blockedEndpointStrArray != "" {
111-
if strings.Contains(blockedEndpointStrArray, "[") || strings.Contains(blockedEndpointStrArray, "]") {
112-
//! Deprecated: JSON
113-
//TODO: Remove this in new Version
114-
115-
log.Error("Invalid Blocked Endpoints: ", "JSON instead of Comma seperated String")
116-
117-
docker.Exit(1)
118-
}
119-
120109
ENV.BLOCKED_ENDPOINTS = utils.StringToArray(blockedEndpointStrArray)
121110
}
122111

@@ -129,15 +118,6 @@ func Load() {
129118
}
130119

131120
if recipientsStrArray != "" {
132-
if strings.Contains(blockedEndpointStrArray, "[") || strings.Contains(blockedEndpointStrArray, "]") {
133-
//! Deprecated: JSON
134-
//TODO: Remove this in new Version
135-
136-
log.Error("Invalid Blocked Endpoints: ", "JSON instead of Comma seperated String")
137-
138-
docker.Exit(1)
139-
}
140-
141121
ENV.VARIABLES["RECIPIENTS"] = utils.StringToArray(recipientsStrArray)
142122
}
143123
}

0 commit comments

Comments
 (0)