diff options
author | David Robillard <d@drobilla.net> | 2024-12-02 21:19:40 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-12-02 21:19:40 -0500 |
commit | 3fc28c38615d22f9b27d8870fa3f7f2fdac8889e (patch) | |
tree | eed2107697b18af4d5cc6a6310829476fe21fa17 | |
parent | 0507047424178213472cfb5750047a72b64f9542 (diff) | |
download | sord-3fc28c38615d22f9b27d8870fa3f7f2fdac8889e.tar.gz sord-3fc28c38615d22f9b27d8870fa3f7f2fdac8889e.tar.bz2 sord-3fc28c38615d22f9b27d8870fa3f7f2fdac8889e.zip |
Remove unreachable code
-rw-r--r-- | src/sord_validate.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/sord_validate.c b/src/sord_validate.c index 50b6b2c..f357de5 100644 --- a/src/sord_validate.c +++ b/src/sord_validate.c @@ -221,9 +221,9 @@ regexp_match(const uint8_t* const pattern, const char* const str) pcre2_code_free(re); return rc > 0; -#endif // USE_PCRE2 - +#else return true; +#endif // USE_PCRE2 } static int @@ -431,11 +431,9 @@ check_type(SordModel* model, sord_iter_free(t); return false; } - } else { - return true; // Blanks often lack explicit types, ignore } - return false; + return true; // Blanks often lack explicit types, ignore } static uint64_t |