Skip to content

Commit 3ad5838

Browse files
committed
fix: lint
1 parent 41949b2 commit 3ad5838

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

provider/internal/mock_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ func (c *mockClient) GetDatabaseCatalog(_ context.Context, databaseName string)
423423
}
424424

425425
// UpdateDatabaseCatalog patches the database catalog.
426-
func (c *mockClient) UpdateDatabaseCatalog(_ context.Context, patch *v1pb.DatabaseCatalog, updateMasks []string) (*v1pb.DatabaseCatalog, error) {
426+
func (c *mockClient) UpdateDatabaseCatalog(_ context.Context, patch *v1pb.DatabaseCatalog, _ []string) (*v1pb.DatabaseCatalog, error) {
427427
c.databaseCatalogMap[patch.Name] = patch
428428
return patch, nil
429429
}

provider/resource_policy.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ func resourcePolicyCreate(ctx context.Context, d *schema.ResourceData, m interfa
123123
Type: policyType,
124124
}
125125

126-
switch policyType {
127-
case v1pb.PolicyType_MASKING_EXCEPTION:
126+
if policyType == v1pb.PolicyType_MASKING_EXCEPTION {
128127
maskingExceptionPolicy, err := convertToMaskingExceptionPolicy(d)
129128
if err != nil {
130129
return diag.FromErr(err)

0 commit comments

Comments
 (0)