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 // Ignore
return 0; return 0;
} }
else if (!strcmp(value, "none"))
if (!strcmp(value, "none"))
{ {
option.color = -1; // No color option.color = -1; // No color
return 0; return 0;
} }
else if (!strcmp(value, "bold"))
if (!strcmp(value, "bold"))
{ {
option.color = 256; // Bold option.color = 256; // Bold
return 0; return 0;

View file

@ -330,14 +330,12 @@ void options_parse(int argc, char *argv[])
} }
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
} }
else if (!strcmp(optarg, "none"))
if (!strcmp(optarg, "none"))
{ {
option.color = -1; // No color option.color = -1; // No color
break; break;
} }
else if (!strcmp(optarg, "bold"))
if (!strcmp(optarg, "bold"))
{ {
option.color = 256; // Bold option.color = 256; // Bold
break; break;