From 3ade808135926170567c200d48a57dacc51bd7dc Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 9 Oct 2024 10:53:49 -0400 Subject: Consolidate repeated branch conditions --- src/delivery_test.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/delivery_test.c') 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; } -- cgit