Fix formatting in fu_common_get_block_devices ()

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
This commit is contained in:
Sergii Dmytruk 2021-06-05 19:05:24 +03:00 committed by Richard Hughes
parent 4558e5f317
commit 8d5784192f

View File

@ -2772,11 +2772,11 @@ fu_common_get_block_devices (GError **error)
return NULL; return NULL;
} }
g_variant_builder_init (&builder, G_VARIANT_TYPE_VARDICT); g_variant_builder_init (&builder, G_VARIANT_TYPE_VARDICT);
output = g_dbus_proxy_call_sync (proxy, output = g_dbus_proxy_call_sync (proxy,
"GetBlockDevices", "GetBlockDevices",
g_variant_new ("(a{sv})", &builder), g_variant_new ("(a{sv})", &builder),
G_DBUS_CALL_FLAGS_NONE, G_DBUS_CALL_FLAGS_NONE,
-1, NULL, error); -1, NULL, error);
if (output == NULL) { if (output == NULL) {
if (error != NULL) if (error != NULL)
g_dbus_error_strip_remote_error (*error); g_dbus_error_strip_remote_error (*error);
@ -2802,7 +2802,6 @@ fu_common_get_block_devices (GError **error)
g_ptr_array_add (devices, g_steal_pointer (&proxy_blk)); g_ptr_array_add (devices, g_steal_pointer (&proxy_blk));
} }
return g_steal_pointer (&devices); return g_steal_pointer (&devices);
} }