[balsa/66-save-and-open-folder] remove more unnecessary checks for != NULL



commit fcbf27fe12717871cea35474990939f266652f6e
Author: Albrecht Dreß <albrecht dress netcologne de>
Date:   Sun Jan 23 16:07:53 2022 +0100

    remove more unnecessary checks for != NULL
    
    Forgotten in commit ddb5ee0c, sorry.
    
    Signed-off-by: Albrecht Dreß <albrecht dress netcologne de>

 src/balsa-message.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/balsa-message.c b/src/balsa-message.c
index 31027a9bf..82ae215f1 100644
--- a/src/balsa-message.c
+++ b/src/balsa-message.c
@@ -1786,7 +1786,7 @@ part_context_dump_all_cb(GtkWidget * menu_item, GList * info_list)
 
        /* save all parts without further user interaction */
        info_list = g_list_first(info_list);
-       while (dir_uri && info_list) {
+       while (info_list) {
            BalsaPartInfo *info = BALSA_PART_INFO(info_list->data);
             LibbalsaVfs * save_uri;
            gboolean result;
@@ -1843,9 +1843,7 @@ part_context_dump_all_cb(GtkWidget * menu_item, GList * info_list)
            g_object_unref(save_uri);
            info_list = g_list_next(info_list);
        }
-       if (dir_uri != NULL) {
-               balsa_mime_widget_view_save_dir(menu_item);
-       }
+       balsa_mime_widget_view_save_dir(menu_item);
        g_object_unref(dir_uri);
     }
     gtk_widget_destroy(dump_dialog);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]