mirror of
https://github.com/goharbor/harbor
synced 2025-04-22 00:27:17 +00:00
pass golint
This commit is contained in:
parent
ceece3a56d
commit
0a5d5d602f
@ -226,7 +226,7 @@ func (c *Checker) projectExist() (exist, canWrite bool, err error) {
|
||||
}
|
||||
|
||||
if resp.StatusCode == http.StatusOK {
|
||||
projects := make([]models.Project, 0)
|
||||
var projects []models.Project
|
||||
if err = json.Unmarshal(data, &projects); err != nil {
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user