diff options
Diffstat (limited to 'plugins/eg-amp.lv2/amp.c')
-rw-r--r-- | plugins/eg-amp.lv2/amp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/eg-amp.lv2/amp.c b/plugins/eg-amp.lv2/amp.c index c3ba279..77cf83f 100644 --- a/plugins/eg-amp.lv2/amp.c +++ b/plugins/eg-amp.lv2/amp.c @@ -223,8 +223,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; } |