fpi-device: Don't double check for cancellable value

g_cancellable_is_cancelled already handles properly null values
This commit is contained in:
Marco Trevisan (Treviño) 2020-06-16 22:43:18 +02:00
parent b6f965c1d9
commit 7f7d099ba0

View file

@ -391,7 +391,7 @@ fpi_device_action_is_cancelled (FpDevice *device)
cancellable = g_task_get_cancellable (priv->current_task);
return cancellable ? g_cancellable_is_cancelled (cancellable) : FALSE;
return g_cancellable_is_cancelled (cancellable);
}
/**