Optimization

This commit is contained in:
Martin Lund 2022-07-17 09:34:03 +02:00
parent 4c2d4ed67f
commit fc3e6c40ec
2 changed files with 4 additions and 8 deletions

View file

@ -219,14 +219,12 @@ static int data_handler(void *user, const char *section, const char *name,
// Ignore
return 0;
}
if (!strcmp(value, "none"))
else if (!strcmp(value, "none"))
{
option.color = -1; // No color
return 0;
}
if (!strcmp(value, "bold"))
else if (!strcmp(value, "bold"))
{
option.color = 256; // Bold
return 0;