mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
removed unreachable code: if plugin is loaded it is also installed and therefore installation will fail. -> The unload code is not needed
This commit is contained in:
parent
1f66c08567
commit
2795dc487c
@ -184,11 +184,6 @@ plugins_install(const char *const plugin_name, const char *const filename, GStri
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
ProfPlugin *plugin = g_hash_table_lookup(plugins, plugin_name);
|
|
||||||
if (plugin) {
|
|
||||||
plugins_unload(plugin_name);
|
|
||||||
}
|
|
||||||
|
|
||||||
gboolean result = copy_file(filename, target_path->str);
|
gboolean result = copy_file(filename, target_path->str);
|
||||||
g_string_free(target_path, TRUE);
|
g_string_free(target_path, TRUE);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user