Skip to content

Commit

Permalink
use HasChanges
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Apr 30, 2020
1 parent a19c82b commit 79b52f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aws/resource_aws_glue_user_defined_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ func resourceAwsGlueUserDefinedFunctionUpdate(d *schema.ResourceData, meta inter
FunctionInput: expandAwsGlueUserDefinedFunctionInput(d),
}

if d.HasChange("owner_name") || d.HasChange("owner_type") ||
d.HasChange("class_name") || d.HasChange("resource_uris") {
if d.HasChanges("owner_name", "owner_type", "class_name", "resource_uris") {
if _, err := conn.UpdateUserDefinedFunction(input); err != nil {
return err
}
Expand Down

0 comments on commit 79b52f6

Please # to comment.