mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
fpi-device: Don't double check for cancellable value
g_cancellable_is_cancelled already handles properly null values
This commit is contained in:
@@ -391,7 +391,7 @@ fpi_device_action_is_cancelled (FpDevice *device)
|
|||||||
|
|
||||||
cancellable = g_task_get_cancellable (priv->current_task);
|
cancellable = g_task_get_cancellable (priv->current_task);
|
||||||
|
|
||||||
return cancellable ? g_cancellable_is_cancelled (cancellable) : FALSE;
|
return g_cancellable_is_cancelled (cancellable);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user