mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 17:06:35 +03:00
Remove if OK_TO_CONTINUE checks, keep indentation
This commit is contained in:
@@ -201,7 +201,6 @@ pub unsafe fn dc_check_qr(context: &Context, qr: *const libc::c_char) -> *mut dc
|
|||||||
dc_free_splitted_lines(lines);
|
dc_free_splitted_lines(lines);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if OK_TO_CONTINUE {
|
|
||||||
/* check the parameters
|
/* check the parameters
|
||||||
---------------------- */
|
---------------------- */
|
||||||
if !addr.is_null() {
|
if !addr.is_null() {
|
||||||
@@ -219,9 +218,7 @@ pub unsafe fn dc_check_qr(context: &Context, qr: *const libc::c_char) -> *mut dc
|
|||||||
return cleanup();
|
return cleanup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if OK_TO_CONTINUE {
|
|
||||||
if !fingerprint.is_null() {
|
if !fingerprint.is_null() {
|
||||||
if strlen(fingerprint) != 40 {
|
if strlen(fingerprint) != 40 {
|
||||||
(*qr_parsed).state = 400i32;
|
(*qr_parsed).state = 400i32;
|
||||||
@@ -232,9 +229,7 @@ pub unsafe fn dc_check_qr(context: &Context, qr: *const libc::c_char) -> *mut dc
|
|||||||
return cleanup();
|
return cleanup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if OK_TO_CONTINUE {
|
|
||||||
if !fingerprint.is_null() {
|
if !fingerprint.is_null() {
|
||||||
let peerstate =
|
let peerstate =
|
||||||
Peerstate::from_fingerprint(context, &context.sql, as_str(fingerprint));
|
Peerstate::from_fingerprint(context, &context.sql, as_str(fingerprint));
|
||||||
@@ -307,7 +302,6 @@ pub unsafe fn dc_check_qr(context: &Context, qr: *const libc::c_char) -> *mut dc
|
|||||||
dc_add_device_msg(context, chat_id, device_msg);
|
dc_add_device_msg(context, chat_id, device_msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
cleanup()
|
cleanup()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user