diff options
author | tyltr <tylitianrui@126.com> | 2021-10-07 00:03:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-06 18:03:16 +0200 |
commit | f307299246e62cf484214d83c9fc41c2a106511b (patch) | |
tree | 190fc78787776e75e1e11e6af8fcae972619b328 /userdata.go | |
parent | URI.Parse should never change it's input (diff) | |
download | fasthttp-f307299246e62cf484214d83c9fc41c2a106511b.tar.gz fasthttp-f307299246e62cf484214d83c9fc41c2a106511b.tar.bz2 fasthttp-f307299246e62cf484214d83c9fc41c2a106511b.zip |
feat:no need to store nil (#1116)
* feat:no need to store nil
* lint
Diffstat (limited to 'userdata.go')
-rw-r--r-- | userdata.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/userdata.go b/userdata.go index bd3e28a..8d2eff9 100644 --- a/userdata.go +++ b/userdata.go @@ -21,6 +21,9 @@ func (d *userData) Set(key string, value interface{}) { return } } + if value == nil { + return + } c := cap(args) if c > n { |