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

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