fix error in go vet

This commit is contained in:
Tan Jiang 2016-04-05 20:04:29 +08:00
parent 0532735d21
commit 3a3262d1e1
1 changed files with 1 additions and 1 deletions

View File

@ -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)