remove redunant if statement
This commit is contained in:
parent
f321c26b07
commit
920a660f23
1 changed files with 2 additions and 4 deletions
6
file.c
6
file.c
|
@ -102,12 +102,10 @@ void arraylist_add(ArrayList *list, char *filepath, char *stats, char *type, int
|
|||
if (marked) {
|
||||
for (int i = 0; i < list->length; i++) {
|
||||
if (strcmp(list->items[i].path, new_file.path) == 0) {
|
||||
if (force) {
|
||||
return;
|
||||
} else {
|
||||
if (!force) {
|
||||
arraylist_remove(list, i);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue