mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
cli/new: use the same style for fs entry loops
Just to please the eyes. No functional changes.
This commit is contained in:
parent
eb29e26a99
commit
f8e9d29533
1 changed files with 2 additions and 9 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Reference in a new issue