mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 21:36:29 +03:00
Return bool from dc_continue_key_transfer
This commit is contained in:
committed by
holger krekel
parent
d0960f7f7f
commit
6a2368f83c
@@ -496,7 +496,7 @@ pub unsafe fn dc_cmdline(context: &Context, line: &str) -> Result<(), failure::E
|
||||
!arg1.is_empty() && !arg2.is_empty(),
|
||||
"Arguments <msg-id> <setup-code> expected"
|
||||
);
|
||||
if 0 == dc_continue_key_transfer(context, arg1.parse()?, arg2_c) {
|
||||
if !dc_continue_key_transfer(context, arg1.parse()?, arg2_c) {
|
||||
bail!("Continue key transfer failed");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user