From eb1715a253bcbf3a6ae51403b34cd6a20b894ec1 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 1 Mar 2018 18:19:24 -0500 Subject: [PATCH] src/libadacl.c: kill a pointless "else if" after an "if" that returns. --- src/libadacl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libadacl.c b/src/libadacl.c index e75fdec..20bb715 100644 --- a/src/libadacl.c +++ b/src/libadacl.c @@ -69,7 +69,7 @@ int safe_open_ex(int at_fd, char* pathname, int flags) { /* No more slashes, this is the base case. */ return openat(at_fd, pathname, flags); } - else if (firstslash[1] == '\0') { + if (firstslash[1] == '\0') { /* The first slash is the last character; ensure that we open a directory. */ firstslash[0] = '\0'; -- 2.43.2