Fix indent

This commit is contained in:
Jason Penilla 2023-02-23 09:16:12 -07:00
parent 1092f49747
commit af948a9498
No known key found for this signature in database
GPG key ID: 0E75A301420E48F8

View file

@ -12,7 +12,7 @@ enum gaps_op {
GAPS_OP_SET, GAPS_OP_SET,
GAPS_OP_ADD, GAPS_OP_ADD,
GAPS_OP_SUBTRACT, GAPS_OP_SUBTRACT,
GAPS_OP_BOUNDED_SUBTRACT, GAPS_OP_BOUNDED_SUBTRACT,
GAPS_OP_TOGGLE GAPS_OP_TOGGLE
}; };
@ -104,13 +104,13 @@ static void apply_gaps_op(int *prop, enum gaps_op op, int amount) {
case GAPS_OP_SUBTRACT: case GAPS_OP_SUBTRACT:
*prop -= amount; *prop -= amount;
break; break;
case GAPS_OP_BOUNDED_SUBTRACT: case GAPS_OP_BOUNDED_SUBTRACT:
if (amount <= *prop) { if (amount <= *prop) {
*prop -= amount; *prop -= amount;
} else { } else {
*prop = 0; *prop = 0;
} }
break; break;
case GAPS_OP_TOGGLE: case GAPS_OP_TOGGLE:
*prop = *prop ? 0 : amount; *prop = *prop ? 0 : amount;
break; break;
@ -192,8 +192,8 @@ static struct cmd_results *gaps_set_runtime(int argc, char **argv) {
data.operation = GAPS_OP_ADD; data.operation = GAPS_OP_ADD;
} else if (strcasecmp(argv[2], "minus") == 0) { } else if (strcasecmp(argv[2], "minus") == 0) {
data.operation = GAPS_OP_SUBTRACT; data.operation = GAPS_OP_SUBTRACT;
} else if (strcasecmp(argv[2], "bounded_minus") == 0) { } else if (strcasecmp(argv[2], "bounded_minus") == 0) {
data.operation = GAPS_OP_BOUNDED_SUBTRACT; data.operation = GAPS_OP_BOUNDED_SUBTRACT;
} else if (strcasecmp(argv[2], "toggle") == 0) { } else if (strcasecmp(argv[2], "toggle") == 0) {
data.operation = GAPS_OP_TOGGLE; data.operation = GAPS_OP_TOGGLE;
} else { } else {