[gnome-games] file-operations: Make excluded arg in delete_files() optional



commit c543ff50311f1c2ff6f75b74c0851fe1bb8a9c07
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Mar 22 12:21:27 2021 +0500

    file-operations: Make excluded arg in delete_files() optional

 src/utils/file-operations.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/utils/file-operations.vala b/src/utils/file-operations.vala
index c4a2f5cb..78ba4087 100644
--- a/src/utils/file-operations.vala
+++ b/src/utils/file-operations.vala
@@ -113,7 +113,7 @@ public class Games.FileOperations {
                }
        }
 
-       public static void delete_files (File file, string[] excluded) throws Error {
+       public static void delete_files (File file, string[] excluded = {}) throws Error {
                delete_files_recurse (file, excluded);
        }
 


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