summaryrefslogtreecommitdiffstats
path: root/src/lib.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-07-14 15:06:38 -0400
committerDavid Robillard <d@drobilla.net>2016-07-14 15:47:47 -0400
commit84ec2ee47279f87b4ed9ee44c9153f52a97732da (patch)
tree33ff024e51103ce035e51206ba1d8ba609769a30 /src/lib.c
parent9da2f26c8a8fcd533c61e9cfafb92a653131f285 (diff)
downloadlilv-84ec2ee47279f87b4ed9ee44c9153f52a97732da.tar.gz
lilv-84ec2ee47279f87b4ed9ee44c9153f52a97732da.tar.bz2
lilv-84ec2ee47279f87b4ed9ee44c9153f52a97732da.zip
Clean up and remove dead code
Diffstat (limited to 'src/lib.c')
-rw-r--r--src/lib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib.c b/src/lib.c
index 7438c0c..8470684 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -87,8 +87,7 @@ lilv_lib_get_plugin(LilvLib* lib, uint32_t index)
{
if (lib->lv2_descriptor) {
return lib->lv2_descriptor(index);
- }
- if (lib->desc) {
+ } else if (lib->desc) {
return lib->desc->get_plugin(lib->desc->handle, index);
}
return NULL;