Fix bug unmarshaling custom duration values

pull/2663/head
Matthew Holt 2019-05-29 23:09:51 -06:00
parent bf54615efc
commit 2265db9028
1 changed files with 1 additions and 2 deletions

View File

@ -157,8 +157,7 @@ func (d *Duration) UnmarshalJSON(b []byte) error {
if err != nil {
return err
}
cd := Duration(dd)
d = &cd
*d = Duration(dd)
return nil
}