* mu-cmd-index: shorten >33 line function

This commit is contained in:
Dirk-Jan C. Binnema
2010-09-11 11:25:43 +03:00
parent c09cb1303b
commit 4ecb207e15

View File

@ -225,12 +225,10 @@ 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) ||
!database_version_check_and_update(opts))
return FALSE; return FALSE;
if (!database_version_check_and_update(opts))
return FALSE;
install_sig_handler (); install_sig_handler ();
midx = mu_index_new (opts->xpath); midx = mu_index_new (opts->xpath);
@ -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;
} }