cli/new: use the same style for fs entry loops

Just to please the eyes. No functional changes.
This commit is contained in:
Jani Nikula 2017-09-01 18:53:06 +03:00 committed by David Bremner
parent eb29e26a99
commit f8e9d29533

View file

@ -443,10 +443,7 @@ add_files (notmuch_database_t *notmuch,
/* Pass 1: Recurse into all sub-directories. */ /* Pass 1: Recurse into all sub-directories. */
is_maildir = _entries_resemble_maildir (path, fs_entries, num_fs_entries); is_maildir = _entries_resemble_maildir (path, fs_entries, num_fs_entries);
for (i = 0; i < num_fs_entries; i++) { for (i = 0; i < num_fs_entries && ! interrupted; i++) {
if (interrupted)
break;
entry = fs_entries[i]; entry = fs_entries[i];
/* Ignore any files/directories the user has configured to /* Ignore any files/directories the user has configured to
@ -514,11 +511,7 @@ add_files (notmuch_database_t *notmuch,
} }
/* Pass 2: Scan for new files, removed files, and removed directories. */ /* Pass 2: Scan for new files, removed files, and removed directories. */
for (i = 0; i < num_fs_entries; i++) for (i = 0; i < num_fs_entries && ! interrupted; i++) {
{
if (interrupted)
break;
entry = fs_entries[i]; entry = fs_entries[i];
/* Ignore files & directories user has configured to be ignored */ /* Ignore files & directories user has configured to be ignored */