From 2ebb1d5239300b408fedc437a2c8616ed9a5d43a Mon Sep 17 00:00:00 2001 From: Username404 Date: Sun, 3 Jul 2022 01:14:49 +0200 Subject: [PATCH] main.cpp: Shorten the assignment of printResult and text_provided 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 29e77c1..a96e7e9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -37,7 +37,7 @@ int main(int argc, char* argv[]) { newLines = true; } else goto invalid_argument; } - else if (currentArgument == ArgumentShort("text")) { text_provided = true; printResult = true; } + else if (currentArgument == ArgumentShort("text")) printResult = text_provided = true; 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;