chore: make condition simpler

This commit is contained in:
kolaente 2025-10-07 10:56:03 +02:00
parent 1b02f78eee
commit d33e742961
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -409,7 +409,7 @@ func getRemindersForTasks(s *xorm.Session, taskIDs []int64) (reminders []*TaskRe
}
func (t *Task) setIdentifier(project *Project) {
if project == nil || (project != nil && project.Identifier == "") {
if project == nil || project.Identifier == "" {
t.Identifier = "#" + strconv.FormatInt(t.Index, 10)
return
}