backend: Also remove file if no description given
This commit is contained in:
parent
89979eac8f
commit
de03863f1b
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue