fix(project): do not use project id of nil project in error
This commit is contained in:
parent
a25834b089
commit
ef0bf3156e
@ -346,7 +346,7 @@ func GetProjectSimplByTaskID(s *xorm.Session, taskID int64) (l *Project, err err
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !exists {
|
if !exists {
|
||||||
return &Project{}, ErrProjectDoesNotExist{ID: l.ID}
|
return nil, ErrProjectDoesNotExist{}
|
||||||
}
|
}
|
||||||
|
|
||||||
return &project, nil
|
return &project, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user