style(core): code cleanup

This commit is contained in:
2022-12-29 18:04:34 +03:00
parent 60f44fb82f
commit 2d46b72929
3 changed files with 3 additions and 12 deletions
+1 -4
View File
@@ -152,10 +152,7 @@ int tanzaku_add(Sappyou *sappyou, const char *name, const char *description) {
}
int tanzaku_rem(Sappyou *sappyou, uint64_t tanzaku_id) {
if (tanzaku_id == HOLE_ID) {
return 1;
}
if (tanzaku_id >= sappyou->size) {
if (tanzaku_id == HOLE_ID || tanzaku_id >= sappyou->size) {
return 1;
}
if (sappyou->database[tanzaku_id].id == HOLE_ID) {