mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
util.RoundTrip(): use neighbouring UnmarshalJSON function
The test failures this had introduced before, from index_tests.go's TestIndicesBuild, suggested that this is probably what we want. Signed-off-by: Stephan Renatus <srenatus@chef.io>
This commit is contained in:
committed by
Torin Sandall
parent
5b07711891
commit
bb05fb8067
+1
-1
@@ -65,5 +65,5 @@ func RoundTrip(x *interface{}) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return json.Unmarshal(bs, x)
|
||||
return UnmarshalJSON(bs, x)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user