Skip to content

Commit

Permalink
cat: remove redundant error handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gottox committed Jun 25, 2023
1 parent 2dcf494 commit edd96b1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tools/cat.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ cat_path(struct SqshArchive *archive, char *path) {
goto out;
}

if (sqsh_inode_type(inode) != SQSH_INODE_TYPE_FILE) {
fprintf(stderr, "%s: not a file\n", path);
rv = EXIT_FAILURE;
goto out;
}

rv = sqsh_file_to_stream(inode, stdout);
if (rv < 0) {
sqsh_perror(rv, path);
Expand Down

0 comments on commit edd96b1

Please sign in to comment.