Return bool from dc_continue_key_transfer

This commit is contained in:
Alexander Krotov
2019-09-10 13:53:32 +03:00
committed by holger krekel
parent d0960f7f7f
commit 6a2368f83c
3 changed files with 5 additions and 6 deletions

View File

@@ -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");
}
}