Skip to content

Commit

Permalink
handleLastApplied cyclomatic complexity reduced, remove nolint comment
Browse files Browse the repository at this point in the history
Signed-off-by: Dasha Komsa <komsa.darya@gmail.com>
  • Loading branch information
d-honeybadger committed Feb 1, 2024
1 parent 2d0c627 commit 7205cf6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/controller/ansibleRun/ansibleRun.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,6 @@ func getLastAppliedParameters(observed *v1alpha1.AnsibleRun) (*v1alpha1.AnsibleR
return lastParameters, nil
}

// nolint: gocyclo
// TODO reduce cyclomatic complexity
func (c *external) handleLastApplied(ctx context.Context, lastParameters *v1alpha1.AnsibleRunParameters, desired *v1alpha1.AnsibleRun) (managed.ExternalObservation, error) {
// Mark as up-to-date since last is equal to desired
isUpToDate := (lastParameters != nil && equality.Semantic.DeepEqual(*lastParameters, desired.Spec.ForProvider))
Expand Down

0 comments on commit 7205cf6

Please sign in to comment.