From 9725cf2482efd584bddd8b8bba60891c6a405958 Mon Sep 17 00:00:00 2001 From: kushalpokharel Date: Thu, 19 Oct 2023 18:30:29 +0000 Subject: [PATCH] Bug 1857752 - Remove else block after return in if block. r=sylvestre Ledru Differential Revision: https://phabricator.services.mozilla.com/D191035 --- toolkit/crashreporter/client/crashreporter_gtk_common.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/toolkit/crashreporter/client/crashreporter_gtk_common.cpp b/toolkit/crashreporter/client/crashreporter_gtk_common.cpp index d4bed0209c07..7438e9be9c53 100644 --- a/toolkit/crashreporter/client/crashreporter_gtk_common.cpp +++ b/toolkit/crashreporter/client/crashreporter_gtk_common.cpp @@ -78,7 +78,9 @@ static bool RestartApplication() { if (pid == -1) { free(argv); return false; - } else if (pid == 0) { + } + + if (pid == 0) { (void)execv(argv[0], argv); _exit(1); }