Reduced unnecessary variable

This commit is contained in:
Paul Beckingham 2019-07-20 14:33:55 -04:00
parent aba1b21dfd
commit c9e498179f

View file

@ -103,15 +103,13 @@ std::string promptCompose ()
std::string dummy;; std::string dummy;;
std::string output; std::string output;
bool hideContextPrompt = false;
execute ("task", {"_get", "rc.tasksh.contextprompt"}, dummy, output); execute ("task", {"_get", "rc.tasksh.contextprompt"}, dummy, output);
output = lowerCase (output); output = lowerCase (output);
bool hideContextPrompt = output == "no\n" ||
hideContextPrompt = (output == "no\n" || output == "n\n" ||
output == "n\n" || output == "false\n" ||
output == "false\n" || output == "0\n" ||
output == "0\n" || output == "off\n";
output == "off\n");
if (!hideContextPrompt) if (!hideContextPrompt)
{ {