fix(project): do not use project id of nil project in error

This commit is contained in:
kolaente 2024-07-18 16:39:30 +02:00
parent a25834b089
commit ef0bf3156e
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B

@ -346,7 +346,7 @@ func GetProjectSimplByTaskID(s *xorm.Session, taskID int64) (l *Project, err err
}
if !exists {
return &Project{}, ErrProjectDoesNotExist{ID: l.ID}
return nil, ErrProjectDoesNotExist{}
}
return &project, nil