backend: Also remove file if no description given

This commit is contained in:
nemunaire 2021-09-06 12:30:31 +02:00
parent 89979eac8f
commit de03863f1b
1 changed files with 5 additions and 0 deletions

View File

@ -79,6 +79,11 @@ func treatIssue(pathname string, team fic.Team) {
log.Printf("%s [ERR] %s\n", id, err)
}
}
} else {
log.Printf("%s [OOK] New issue created: id=%d\n", id, claim.Id)
if err = os.Remove(pathname); err != nil {
log.Printf("%s [ERR] %s\n", id, err)
}
}
genTeamIssuesFile(team)
}