mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-24 19:26:48 +00:00
trivial: Remove duplicate requirement checks
The fu_engine_check_requirements() tests are already called from fu_engine_get_result_from_app() using a NULL device.
This commit is contained in:
parent
4afe7fb742
commit
38c7c334f4
@ -2119,14 +2119,6 @@ fu_engine_get_details (FuEngine *self, gint fd, GError **error)
|
||||
for (guint i = 0; i < apps->len; i++) {
|
||||
AsApp *app = g_ptr_array_index (apps, i);
|
||||
FwupdDevice *dev;
|
||||
g_autoptr(FuInstallTask) task = NULL;
|
||||
|
||||
/* check we can install it */
|
||||
task = fu_install_task_new (NULL, app);
|
||||
if (!fu_engine_check_requirements (self, task,
|
||||
FWUPD_INSTALL_FLAG_NONE,
|
||||
error))
|
||||
return NULL;
|
||||
|
||||
as_app_set_origin (app, as_store_get_origin (store));
|
||||
dev = fu_engine_get_result_from_app (self, app, error);
|
||||
|
Loading…
Reference in New Issue
Block a user