Simplify assignment in UnmarshalJSON.

This commit is contained in:
Kevin Atkinson
2018-08-25 15:26:16 -04:00
parent cad52160a4
commit 426ebe9e55

2
cid.go
View File

@@ -414,7 +414,7 @@ func (c *Cid) UnmarshalJSON(b []byte) error {
return err
}
*c = Cid{out.string[:]}
*c = out
return nil
}