Removed an unnecessary nil assignment

This commit is contained in:
Nan Monnand Deng 2013-06-28 18:46:25 -04:00
parent 6a2aee3043
commit e9e0d3c1c5

View File

@ -132,7 +132,6 @@ func (r *Registry) setUserAgent(req *http.Request, extra ...VersionChecker) {
}
header, _ := json.Marshal(userAgent)
userAgent = nil
req.Header.Set("User-Agent", string(header))
return
}