Skip to content

Commit

Permalink
Removed unnecessary errwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
onetwopunch committed Apr 10, 2020
1 parent 1590e48 commit 75c7a70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugin/iamutil/dataset_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import (
"encoding/json"
"errors"
"fmt"
"strings"

"github.com/hashicorp/errwrap"
"github.com/hashicorp/go-gcp-common/gcputil"
"strings"
)

// NOTE: BigQuery does not conform to the typical REST for IAM policies
Expand Down Expand Up @@ -79,11 +80,11 @@ func policyAsDataset(p *Policy) (*Dataset, error) {
}

if p == nil {
return nil, errwrap.Wrap(errors.New("Policy cannot be nil"), nil)
return nil, errors.New("Policy cannot be nil")
}
for _, binding := range p.Bindings {
if binding.Condition != nil {
return nil, errwrap.Wrap(errors.New("Bigquery Datasets do not support conditional IAM"), nil)
return nil, errors.New("Bigquery Datasets do not support conditional IAM")
}
for _, member := range binding.Members {
var email, iamType string
Expand Down

0 comments on commit 75c7a70

Please sign in to comment.