* mu-cmd-index: shorten >33 line function
This commit is contained in:
@ -225,10 +225,8 @@ mu_cmd_index (MuConfigOptions *opts)
|
|||||||
g_return_val_if_fail (opts, FALSE);
|
g_return_val_if_fail (opts, FALSE);
|
||||||
g_return_val_if_fail (mu_cmd_equals (opts, "index"), FALSE);
|
g_return_val_if_fail (mu_cmd_equals (opts, "index"), FALSE);
|
||||||
|
|
||||||
if (!check_index_params (opts))
|
if (!check_index_params (opts) ||
|
||||||
return FALSE;
|
!database_version_check_and_update(opts))
|
||||||
|
|
||||||
if (!database_version_check_and_update(opts))
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
install_sig_handler ();
|
install_sig_handler ();
|
||||||
@ -255,8 +253,7 @@ mu_cmd_index (MuConfigOptions *opts)
|
|||||||
(unsigned)stats._processed, (unsigned)stats._updated,
|
(unsigned)stats._processed, (unsigned)stats._updated,
|
||||||
(unsigned)stats._cleaned_up);
|
(unsigned)stats._cleaned_up);
|
||||||
|
|
||||||
if (!opts->quiet)
|
g_message ("\n");
|
||||||
g_print ("\n");
|
|
||||||
|
|
||||||
return (rv == MU_OK || rv == MU_STOP) ? TRUE: FALSE;
|
return (rv == MU_OK || rv == MU_STOP) ? TRUE: FALSE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user