summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--caddy.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/caddy.go b/caddy.go
index d010f63..c43a7c0 100644
--- a/caddy.go
+++ b/caddy.go
@@ -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
}