Skip to content

Commit

Permalink
more lint work
Browse files Browse the repository at this point in the history
  • Loading branch information
Oded-B committed Apr 17, 2024
1 parent f5e3473 commit a52e105
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/pkg/argocd/argocd.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func groupObjsByKey(localObs []*unstructured.Unstructured, liveObjs []*unstructu
func groupObjsForDiff(resources *application.ManagedResourcesResponse, objs map[kube.ResourceKey]*unstructured.Unstructured, items []objKeyLiveTarget, argoSettings *settings.Settings, appName, namespace string) []objKeyLiveTarget {
resourceTracking := argo.NewResourceTracking()
for _, res := range resources.Items {
var live = &unstructured.Unstructured{}
live := &unstructured.Unstructured{}
err := json.Unmarshal([]byte(res.NormalizedLiveState), &live)
errors.CheckError(err)

Expand Down Expand Up @@ -142,13 +142,13 @@ func generateArgocdAppDiff(ctx context.Context, app *argoappv1.Application, proj
} else {
for i := range resources.Items {
res := resources.Items[i]
var live = &unstructured.Unstructured{}
live := &unstructured.Unstructured{}
err := json.Unmarshal([]byte(res.NormalizedLiveState), &live)
if err != nil {
return false, nil, err
}

var target = &unstructured.Unstructured{}
target := &unstructured.Unstructured{}
err = json.Unmarshal([]byte(res.TargetState), &target)
if err != nil {
return false, nil, err
Expand Down

0 comments on commit a52e105

Please sign in to comment.