forked from TrueCloudLab/distribution
Removed an unnecessary nil assignment
This commit is contained in:
parent
6a2aee3043
commit
e9e0d3c1c5
1 changed files with 0 additions and 1 deletions
|
@ -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 a new issue