diff options
-rw-r--r-- | caddy.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 } |