mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-31 23:59:32 +01:00
fix error in go vet
This commit is contained in:
parent
0532735d21
commit
3a3262d1e1
@ -71,7 +71,7 @@ func FilterAccess(username string, authenticated bool, a *token.ResourceActions)
|
||||
if authenticated {
|
||||
isAdmin, err := dao.IsAdminRole(username)
|
||||
if err != nil {
|
||||
log.Errorf("Error occurred in IsAdminRole: %v")
|
||||
log.Errorf("Error occurred in IsAdminRole: %v", err)
|
||||
}
|
||||
if isAdmin {
|
||||
exist, err := dao.ProjectExists(projectName)
|
||||
|
Loading…
Reference in New Issue
Block a user