Skip to content

Commit f31477f

Browse files
authored
Add missing returns (#37240)
1 parent 481bef3 commit f31477f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/backend/remote-state/azure/backend.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,10 @@ func (b *Backend) Configure(configVal cty.Value) tfdiags.Diagnostics {
453453
needToLookupAccessKey := backendConfig.AccessKey == "" && backendConfig.SasToken == "" && !backendConfig.UseAzureADAuthentication
454454
if backendConfig.ResourceGroupName == "" {
455455
if needToLookupAccessKey {
456-
backendbase.ErrorAsDiagnostics(fmt.Errorf("One of `access_key`, `sas_token`, `use_azuread_auth` and `resource_group_name` must be specifieid"))
456+
return backendbase.ErrorAsDiagnostics(fmt.Errorf("One of `access_key`, `sas_token`, `use_azuread_auth` and `resource_group_name` must be specifieid"))
457457
}
458458
if backendConfig.LookupBlobEndpoint {
459-
backendbase.ErrorAsDiagnostics(fmt.Errorf("`resource_group_name` is required when `lookup_blob_endpoint` is set"))
459+
return backendbase.ErrorAsDiagnostics(fmt.Errorf("`resource_group_name` is required when `lookup_blob_endpoint` is set"))
460460
}
461461
}
462462

0 commit comments

Comments
 (0)