Skip to content

Commit d85523a

Browse files
committed
revert: try float as string
1 parent ef34e51 commit d85523a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/cac/diff/diff.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package diff
33
import (
44
"context"
55
"regexp"
6-
"strconv"
76

87
"github.com/cloudentity/acp-client-go/clients/hub/models"
98
"github.com/cloudentity/cac/internal/cac/api"
@@ -167,8 +166,6 @@ func Tree(left models.Rfc7396PatchOperation, right models.Rfc7396PatchOperation,
167166

168167
diffOpts = append(diffOpts, cmpopts.SortSlices(func(a, b string) bool {
169168
return a < b
170-
}), cmpopts.EquateEmpty(), cmpopts.AcyclicTransformer("FloatAsString", func(i float64) string {
171-
return strconv.FormatFloat(i, 'f', -1, 64)
172169
}))
173170

174171
out := cmp.Diff(right, left, diffOpts)

0 commit comments

Comments
 (0)