mirror of
https://github.com/distribution/distribution.git
synced 2025-09-01 23:17:33 +00:00
Removed an unnecessary nil assignment
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user