diff options
Diffstat (limited to 'plugins/eg-midigate.lv2')
-rw-r--r-- | plugins/eg-midigate.lv2/midigate.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/eg-midigate.lv2/midigate.c b/plugins/eg-midigate.lv2/midigate.c index 70901f6..4d1385e 100644 --- a/plugins/eg-midigate.lv2/midigate.c +++ b/plugins/eg-midigate.lv2/midigate.c @@ -231,10 +231,5 @@ LV2_SYMBOL_EXPORT const LV2_Descriptor* lv2_descriptor(uint32_t index) { - switch (index) { - case 0: - return &descriptor; - default: - return NULL; - } + return index == 0 ? &descriptor : NULL; } |