mirror of
https://github.com/morgan9e/libfprint-fpc1020
synced 2026-04-15 00:44:25 +09: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);
|
||||
|
||||
return cancellable ? g_cancellable_is_cancelled (cancellable) : FALSE;
|
||||
return g_cancellable_is_cancelled (cancellable);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user