gplugin/gplugin

9cff0fc0d74f
Parents 445573c0c362
Children 87a3b4ca7fd7
Don't both checking if the loader is a load when we're just going to check the type anyways
--- a/gplugin/gplugin-manager.c Mon Oct 23 20:58:18 2017 -0500
+++ b/gplugin/gplugin-manager.c Mon Oct 23 21:26:02 2017 -0500
@@ -298,9 +298,7 @@
for(l = los; l; l = l->next) {
GPluginLoader *lo = GPLUGIN_LOADER(l->data);
- if(!GPLUGIN_IS_LOADER(lo))
- continue;
-
+ /* check if this is not the loader we're looking for */
if(G_OBJECT_TYPE(lo) != type)
continue;