mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 10:26:29 +03:00
Change return type of `dc_is_configured' to bool
This commit is contained in:
@@ -45,16 +45,16 @@ pub unsafe fn configure(context: &Context) {
|
||||
}
|
||||
|
||||
/// Check if the context is already configured.
|
||||
pub fn dc_is_configured(context: &Context) -> libc::c_int {
|
||||
pub fn dc_is_configured(context: &Context) -> bool {
|
||||
if context
|
||||
.sql
|
||||
.get_config_int(context, "configured")
|
||||
.unwrap_or_default()
|
||||
> 0
|
||||
{
|
||||
1
|
||||
true
|
||||
} else {
|
||||
0
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user