Skip to content

Commit

Permalink
Merge pull request #54 from Gottox/fix/clang-tidy
Browse files Browse the repository at this point in the history
resolve issues found by clang-tidy
  • Loading branch information
Gottox authored Aug 21, 2023
2 parents ed2b8b2 + 84bdd1d commit cf1d5b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions lib/tree/walker.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,6 @@ tree_walker_resolve(
if (rv < 0) {
goto out;
}
if (sqsh_tree_walker_type(walker) == SQSH_FILE_TYPE_DIRECTORY) {
is_dir = true;
}
is_dir = sqsh_tree_walker_type(walker) ==
SQSH_FILE_TYPE_DIRECTORY;
break;
Expand Down
5 changes: 3 additions & 2 deletions test/reader/reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,9 +547,10 @@ test_reader_extend_size_till_end(void) {
data = sqsh__reader_data(&reader);
assert(sqsh__reader_size(&reader) == 12);
assert(memcmp(data, "456789ABCDEF", 12) == 0);
assert(rv == 0);

// rv = sqsh__reader_advance(&reader, 0, 13);
// assert(rv == -SQSH_ERROR_OUT_OF_BOUNDS);
rv = sqsh__reader_advance(&reader, 0, 13);
assert(rv == -SQSH_ERROR_OUT_OF_BOUNDS);

sqsh__reader_cleanup(&reader);
}
Expand Down

0 comments on commit cf1d5b6

Please sign in to comment.