Skip to content

Commit

Permalink
little better code
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeDP committed Dec 19, 2015
1 parent bfc5d10 commit f5dc640
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ static int recursive_search(const char *path, const struct stat *sb, int typefla
ret = 1;
}
}
if (quit) {
ret = 1;
}
return ret;
return quit ? 1 : ret;
}

static int search_inside_archive(const char *path) {
Expand Down Expand Up @@ -82,10 +79,7 @@ static int search_inside_archive(const char *path) {
}
}
archive_read_free(a);
if (quit) {
ret = 1;
}
return ret;
return quit ? 1 : ret;
}

static void *search_thread(void *x) {
Expand Down

0 comments on commit f5dc640

Please sign in to comment.