1
0

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
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

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