fpi-device: Don't double check for cancellable value
g_cancellable_is_cancelled already handles properly null values
This commit is contained in:
parent
b6f965c1d9
commit
7f7d099ba0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue