Skip to content

Commit

Permalink
Merge pull request #1 from raymondberg/master
Browse files Browse the repository at this point in the history
Linter fixes on redshift schema group
  • Loading branch information
raymondberg committed Feb 4, 2021
2 parents cff7354 + 4132276 commit 1ed0165
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions redshift/resource_redshift_schema_group_privilege.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func resourceRedshiftSchemaGroupPrivilegeCreate(d *schema.ResourceData, meta int
grants := validateGrants(d)
schemaGrants := validateSchemaGrants(d)

if len(grants) == 0 && len(schemaGrants) == 0 {
if len(grants) == 0 && len(schemaGrants) == 0 {
tx.Rollback()
return NewError("Must have at least 1 privilege")
}
Expand Down Expand Up @@ -203,8 +203,8 @@ func resourceRedshiftSchemaGroupPrivilegeRead(d *schema.ResourceData, meta inter

func readRedshiftSchemaGroupPrivilege(d *schema.ResourceData, tx *sql.Tx) error {
var (
usagePrivilege bool
createPrivilege bool
usagePrivilege bool
createPrivilege bool
selectPrivilege bool
updatePrivilege bool
insertPrivilege bool
Expand Down Expand Up @@ -276,7 +276,7 @@ func resourceRedshiftSchemaGroupPrivilegeUpdate(d *schema.ResourceData, meta int
grants := validateGrants(d)
schemaGrants := validateSchemaGrants(d)

if len(grants) == 0 && len(schemaGrants) == 0 {
if len(grants) == 0 && len(schemaGrants) == 0 {
tx.Rollback()
return NewError("Must have at least 1 privilege")
}
Expand Down

0 comments on commit 1ed0165

Please sign in to comment.