diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-10-09 10:53:49 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-10-09 12:51:29 -0400 |
commit | 3ade808135926170567c200d48a57dacc51bd7dc (patch) | |
tree | db69bc41db60d5ca61f3de624db5e62b7f72354e /src/delivery_test.c | |
parent | 2f97be35d6093c4f5e07248f74a40eb0c69003ca (diff) | |
download | stasis-3ade808135926170567c200d48a57dacc51bd7dc.tar.gz |
Consolidate repeated branch conditions
Diffstat (limited to 'src/delivery_test.c')
-rw-r--r-- | src/delivery_test.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/delivery_test.c b/src/delivery_test.c index 8ff08cc..e1d5efa 100644 --- a/src/delivery_test.c +++ b/src/delivery_test.c @@ -278,9 +278,7 @@ int delivery_fixup_test_results(struct Delivery *ctx) { char path[PATH_MAX]; memset(path, 0, sizeof(path)); - if (!strcmp(rec->d_name, ".") || !strcmp(rec->d_name, "..")) { - continue; - } else if (!endswith(rec->d_name, ".xml")) { + if (!strcmp(rec->d_name, ".") || !strcmp(rec->d_name, "..") || !endswith(rec->d_name, ".xml")) { continue; } |