Clean-up: coding style adjustments
[babeltrace.git] / plugins / ctf / fs-sink / writer.c
index 36e35d928819ed5ec2b131c04670f421184d6e54..8f383a519de7cef9e5e4407ce3b8390d7c1d3840 100644 (file)
@@ -297,13 +297,11 @@ enum bt_component_status apply_one_bool(const char *key,
                goto end;
        }
        status = bt_value_bool_get(value, &bool_val);
-       switch (status) {
-       case BT_VALUE_STATUS_OK:
-               break;
-       default:
+       if (status != BT_VALUE_STATUS_OK) {
                ret = BT_COMPONENT_STATUS_ERROR;
                goto end;
        }
+
        *option = (bool) bool_val;
        if (found) {
                *found = true;
This page took 0.026255 seconds and 4 git commands to generate.