Skip to content

Commit

Permalink
chore: avoid unnecessary json unmarshal (#627)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
  • Loading branch information
crenshaw-dev authored Sep 16, 2024
1 parent 3d9aab3 commit df9b446
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/diff/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -664,12 +664,6 @@ func ThreeWayDiff(orig, config, live *unstructured.Unstructured) (*DiffResult, e
}
}

predictedLive := &unstructured.Unstructured{}
err = json.Unmarshal(predictedLiveBytes, predictedLive)
if err != nil {
return nil, err
}

return buildDiffResult(predictedLiveBytes, liveBytes), nil
}

Expand Down

0 comments on commit df9b446

Please sign in to comment.