Skip to content

Commit

Permalink
Fix golangci-lint 'staticcheck'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Apr 26, 2023
1 parent ed3910a commit 77c50a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions internal/service/rds/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -1690,10 +1690,6 @@ func resourceInstanceRead(ctx context.Context, d *schema.ResourceData, meta inte
d.Set("replicas", aws.StringValueSlice(v.ReadReplicaDBInstanceIdentifiers))
d.Set("replicate_source_db", v.ReadReplicaSourceDBInstanceIdentifier)
d.Set("resource_id", v.DbiResourceId)
var securityGroupNames []string
for _, v := range v.DBSecurityGroups {
securityGroupNames = append(securityGroupNames, aws.StringValue(v.DBSecurityGroupName))
}
d.Set("status", v.DBInstanceStatus)
d.Set("storage_encrypted", v.StorageEncrypted)
d.Set("storage_throughput", v.StorageThroughput)
Expand Down
4 changes: 0 additions & 4 deletions internal/service/rds/instance_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,6 @@ func dataSourceInstanceRead(ctx context.Context, d *schema.ResourceData, meta in
parameterGroupNames = append(parameterGroupNames, aws.StringValue(v.DBParameterGroupName))
}
d.Set("db_parameter_groups", parameterGroupNames)
var securityGroupNames []string
for _, v := range v.DBSecurityGroups {
securityGroupNames = append(securityGroupNames, aws.StringValue(v.DBSecurityGroupName))
}
if v.DBSubnetGroup != nil {
d.Set("db_subnet_group", v.DBSubnetGroup.DBSubnetGroupName)
} else {
Expand Down

0 comments on commit 77c50a2

Please sign in to comment.