backend: Also remove file if no description given
This commit is contained in:
parent
89979eac8f
commit
de03863f1b
1 changed files with 5 additions and 0 deletions
|
|
@ -79,6 +79,11 @@ func treatIssue(pathname string, team fic.Team) {
|
||||||
log.Printf("%s [ERR] %s\n", id, err)
|
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)
|
genTeamIssuesFile(team)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue