Skip to content

Commit

Permalink
Add //nolint:gocyclo for custom diff function
Browse files Browse the repository at this point in the history
Signed-off-by: Sergen Yalçın <[email protected]>
  • Loading branch information
sergenyalcin committed Mar 21, 2024
1 parent 503d832 commit cfe5c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/apimanagement/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func Configure(p *config.Provider) {
})
}

func apiIdCustomDiff(diff *terraform.InstanceDiff, state *terraform.InstanceState, resourceConfig *terraform.ResourceConfig) (*terraform.InstanceDiff, error) {
func apiIdCustomDiff(diff *terraform.InstanceDiff, state *terraform.InstanceState, resourceConfig *terraform.ResourceConfig) (*terraform.InstanceDiff, error) { //nolint:gocyclo
if state == nil || state.Empty() || diff == nil || diff.Empty() || diff.Destroy {
return diff, nil
}
Expand Down

0 comments on commit cfe5c04

Please sign in to comment.