Removed an unnecessary nil assignment
This commit is contained in:
parent
6a2aee3043
commit
e9e0d3c1c5
@ -132,7 +132,6 @@ func (r *Registry) setUserAgent(req *http.Request, extra ...VersionChecker) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
header, _ := json.Marshal(userAgent)
|
header, _ := json.Marshal(userAgent)
|
||||||
userAgent = nil
|
|
||||||
req.Header.Set("User-Agent", string(header))
|
req.Header.Set("User-Agent", string(header))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user