changeset 778:21ec5e6d3ddf

Reduce indentation level.
author zas_
date Tue, 03 Jun 2008 09:03:33 +0000
parents 088b71bf5715
children 8b21337bc47b
files src/collect-table.c
diffstat 1 files changed, 20 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/src/collect-table.c	Tue Jun 03 08:57:46 2008 +0000
+++ b/src/collect-table.c	Tue Jun 03 09:03:33 2008 +0000
@@ -1902,28 +1902,28 @@
 {
 	GList *d = NULL;
 	GList *f = NULL;
-
-	if (filelist_read(path, &f, recursive ? &d : NULL))
+	GList *work;
+
+	if (!filelist_read(path, &f, recursive ? &d : NULL))
+		return;
+
+	f = filelist_filter(f, FALSE);
+	d = filelist_filter(d, TRUE);
+
+	f = filelist_sort_path(f);
+	d = filelist_sort_path(d);
+
+	collection_table_insert_filelist(ct, f, ct->marker_info);
+
+	work = g_list_last(d);
+	while (work)
 		{
-		GList *work;
-
-		f = filelist_filter(f, FALSE);
-		d = filelist_filter(d, TRUE);
-
-		f = filelist_sort_path(f);
-		d = filelist_sort_path(d);
-
-		collection_table_insert_filelist(ct, f, ct->marker_info);
-
-		work = g_list_last(d);
-		while (work)
-			{
-			collection_table_add_dir_recursive(ct, ((FileData *)work->data)->path, TRUE);
-			work = work->prev;
-			}
-		filelist_free(f);
-		filelist_free(d);
+		collection_table_add_dir_recursive(ct, ((FileData *)work->data)->path, TRUE);
+		work = work->prev;
 		}
+
+	filelist_free(f);
+	filelist_free(d);
 }
 
 static void confirm_dir_list_do(CollectTable *ct, GList *list, gint recursive)