Skip to content

Commit 5538143

Browse files
committed
terraform: fix incorrect error handling
1 parent c8704d6 commit 5538143

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

terraform/auth/config.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ func (c *Config) CommonServiceClientInit(ctx context.Context, newClient commonCo
320320
if client.ProviderClient == nil {
321321
return client, err
322322
}
323-
} else if err != nil {
323+
}
324+
if err != nil {
324325
return client, err
325326
}
326327

@@ -374,7 +375,8 @@ func (c *Config) MessagingV2Client(ctx context.Context, clientID string, region
374375
if client.ProviderClient == nil {
375376
return client, err
376377
}
377-
} else if err != nil {
378+
}
379+
if err != nil {
378380
return client, err
379381
}
380382

0 commit comments

Comments
 (0)