mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-06-26 10:54:29 +02:00
Reduced unnecessary variable
This commit is contained in:
parent
aba1b21dfd
commit
c9e498179f
1 changed files with 5 additions and 7 deletions
|
@ -103,15 +103,13 @@ std::string promptCompose ()
|
|||
std::string dummy;;
|
||||
std::string output;
|
||||
|
||||
bool hideContextPrompt = false;
|
||||
execute ("task", {"_get", "rc.tasksh.contextprompt"}, dummy, output);
|
||||
output = lowerCase (output);
|
||||
|
||||
hideContextPrompt = (output == "no\n" ||
|
||||
output == "n\n" ||
|
||||
output == "false\n" ||
|
||||
output == "0\n" ||
|
||||
output == "off\n");
|
||||
bool hideContextPrompt = output == "no\n" ||
|
||||
output == "n\n" ||
|
||||
output == "false\n" ||
|
||||
output == "0\n" ||
|
||||
output == "off\n";
|
||||
|
||||
if (!hideContextPrompt)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue