Permalink
Browse files

#9 TI-1: Merge if statements

  • Loading branch information...
lauft committed Jul 18, 2018
1 parent af621a3 commit 21b4b6242c652589ec107e4a7e6b3a57a8dd88cc
Showing with 6 additions and 8 deletions.
  1. +6 −8 src/commands/CmdConfig.cpp
@@ -293,9 +293,13 @@ int CmdConfig (
return CmdShow (rules);
}

// Join the remaining words into config variable's value
bool change = false;

// timew config name value
// timew config name ""
if (words.size () > 1)
{
// Join the remaining words into config variable's value
for (unsigned int i = 1; i < words.size (); ++i)
{
if (i > 1)
@@ -305,15 +309,9 @@ int CmdConfig (

value += words[i];
}
}

bool change = false;

// timew config name value
// timew config name ""
if (words.size () > 1)
{
change = setConfigVariable (database, rules, name, value, confirmation);

if (!change)
{
rc = 1;

0 comments on commit 21b4b62

Please sign in to comment.