From 97fa5fbb27df5086d5e13b9b1fc3309d65b21e49 Mon Sep 17 00:00:00 2001 From: Username404 Date: Sun, 3 Jul 2022 01:02:18 +0200 Subject: [PATCH] main.cpp: Simplify the condition used for text or files arguments Signed-off-by: Username404 --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 9efd448..29e77c1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -38,7 +38,7 @@ int main(int argc, char* argv[]) { } else goto invalid_argument; } else if (currentArgument == ArgumentShort("text")) { text_provided = true; printResult = true; } - else if ((currentArgument.ends_with(".ybcon") && !text_provided) || text_provided) + else if (text_provided || currentArgument.ends_with(".ybcon")) Units.insert_or_assign(currentArgument, async(not parallel ? launch::deferred : launch::async, [currentArgument, &text_provided, &target, &newLines]() { unit_result resultingPair; try {