main.cpp: Shorten the assignment of printResult and text_provided

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-07-03 01:14:49 +02:00
parent 97fa5fbb27
commit 2ebb1d5239
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -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;