Skip to content

Commit 1702047

Browse files
committed
1 parent 7376c32 commit 1702047

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/sync/aws.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ func validateAWSConfig(cfg *awsConfig) error {
275275
if ups.Port == 0 {
276276
return fmt.Errorf(upstreamPortErrorMsgFormat, ups.Name)
277277
}
278-
if ups.Kind == "" || !(ups.Kind == "http" || ups.Kind == "stream") {
278+
if ups.Kind == "" || (ups.Kind != "http" && ups.Kind != "stream") {
279279
return fmt.Errorf(upstreamKindErrorMsgFormat, ups.Name)
280280
}
281281
if ups.MaxConns < 0 {

cmd/sync/azure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func validateAzureConfig(cfg *azureConfig) error {
203203
if ups.Port == 0 {
204204
return fmt.Errorf(upstreamPortErrorMsgFormat, ups.Name)
205205
}
206-
if ups.Kind == "" || !(ups.Kind == "http" || ups.Kind == "stream") {
206+
if ups.Kind == "" || (ups.Kind != "http" && ups.Kind != "stream") {
207207
return fmt.Errorf(upstreamKindErrorMsgFormat, ups.Name)
208208
}
209209
if ups.MaxConns < 0 {

0 commit comments

Comments
 (0)