Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthaI committed Aug 19, 2024
1 parent 4482d99 commit 6f19094
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aws/canonical_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func TestConvertPolicy(t *testing.T) {
func prettyPrint(src interface{}) {
pretty, err := json.MarshalIndent(src, "", " ")
if err != nil {
log.Fatalf(err.Error())
log.Fatal(err.Error())
}
fmt.Printf("\n %s\n", string(pretty))

Expand Down
2 changes: 1 addition & 1 deletion aws/table_aws_securityhub_product.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func getSecurityHubProduct(ctx context.Context, d *plugin.QueryData, _ *plugin.H
return nil, err
}

if op.Products != nil && len(op.Products) > 0 {
if op != nil && len(op.Products) > 0 {
return op.Products[0], nil
}

Expand Down

0 comments on commit 6f19094

Please sign in to comment.