File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ func validateAWSConfig(cfg *awsConfig) error {
275
275
if ups .Port == 0 {
276
276
return fmt .Errorf (upstreamPortErrorMsgFormat , ups .Name )
277
277
}
278
- if ups .Kind == "" || ! (ups .Kind == "http" || ups .Kind = = "stream" ) {
278
+ if ups .Kind == "" || (ups .Kind != "http" && ups .Kind ! = "stream" ) {
279
279
return fmt .Errorf (upstreamKindErrorMsgFormat , ups .Name )
280
280
}
281
281
if ups .MaxConns < 0 {
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ func validateAzureConfig(cfg *azureConfig) error {
203
203
if ups .Port == 0 {
204
204
return fmt .Errorf (upstreamPortErrorMsgFormat , ups .Name )
205
205
}
206
- if ups .Kind == "" || ! (ups .Kind == "http" || ups .Kind = = "stream" ) {
206
+ if ups .Kind == "" || (ups .Kind != "http" && ups .Kind ! = "stream" ) {
207
207
return fmt .Errorf (upstreamKindErrorMsgFormat , ups .Name )
208
208
}
209
209
if ups .MaxConns < 0 {
You can’t perform that action at this time.
0 commit comments