From 35aa8645541f2a069949a81faba9f028726765ad Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 19 Jun 2021 01:48:14 +0530 Subject: [PATCH] Fix returns --- src/nnn.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index 4a939dc0..6497ffc2 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -4867,16 +4867,14 @@ static bool run_selected_plugin(char **path, const char *file, char *runfile, ch if (!*file) return FALSE; - if ((flags & F_NOTRACE) || (flags & F_PAGE)) { - run_cmd_as_plugin(file, runfile, flags); - return TRUE; - } + if ((flags & F_NOTRACE) || (flags & F_PAGE)) + return run_cmd_as_plugin(file, runfile, flags); cmd_as_plugin = TRUE; } if (mkfifo(g_pipepath, 0600) != 0) - return EXIT_FAILURE; + return FALSE; exitcurses();