diff options
author | David Robillard <d@drobilla.net> | 2021-08-01 20:31:21 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-28 21:57:07 -0500 |
commit | 3ddbb5da6ac249638151a4570747500610b5c07c (patch) | |
tree | a4f91f81307b3951cbb03bca33a3259bbc20e6ae | |
parent | 62a515492994a0320b1c45e87b4360adbf1ae9ba (diff) | |
download | serd-3ddbb5da6ac249638151a4570747500610b5c07c.tar.gz serd-3ddbb5da6ac249638151a4570747500610b5c07c.tar.bz2 serd-3ddbb5da6ac249638151a4570747500610b5c07c.zip |
Remove redundant check for command line argument count
-rw-r--r-- | tools/serdi.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/serdi.c b/tools/serdi.c index 73a3f05c..e03bf250 100644 --- a/tools/serdi.c +++ b/tools/serdi.c @@ -173,9 +173,6 @@ int main(int argc, char** argv) { const char* const prog = argv[0]; - if (argc < 2) { - return print_usage(prog, true); - } SerdNode* base = NULL; SerdSyntax input_syntax = SERD_SYNTAX_EMPTY; @@ -344,7 +341,7 @@ main(int argc, char** argv) if (a == argc && !input_string) { SERDI_ERROR("missing input\n"); - return 1; + return print_usage(prog, true); } char* const* const inputs = argv + a; |