mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
#9 TI-1: Merge if statements
This commit is contained in:
parent
af621a3eef
commit
21b4b6242c
1 changed files with 6 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue