aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-10-09 10:53:49 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-10-09 12:51:29 -0400
commit3ade808135926170567c200d48a57dacc51bd7dc (patch)
treedb69bc41db60d5ca61f3de624db5e62b7f72354e
parent2f97be35d6093c4f5e07248f74a40eb0c69003ca (diff)
downloadstasis-3ade808135926170567c200d48a57dacc51bd7dc.tar.gz
Consolidate repeated branch conditions
-rw-r--r--src/delivery_test.c4
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;
}