Skip to content

Commit df9b446

Browse files
authored
chore: avoid unnecessary json unmarshal (#627)
Signed-off-by: Michael Crenshaw <[email protected]>
1 parent 3d9aab3 commit df9b446

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/diff/diff.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -664,12 +664,6 @@ func ThreeWayDiff(orig, config, live *unstructured.Unstructured) (*DiffResult, e
664664
}
665665
}
666666

667-
predictedLive := &unstructured.Unstructured{}
668-
err = json.Unmarshal(predictedLiveBytes, predictedLive)
669-
if err != nil {
670-
return nil, err
671-
}
672-
673667
return buildDiffResult(predictedLiveBytes, liveBytes), nil
674668
}
675669

0 commit comments

Comments
 (0)