File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,9 @@ package env
33import (
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}
You can’t perform that action at this time.
0 commit comments