[gnome-builder] editorconfig: with layered file settings, no matches is okay



commit 24acff952c3a9041550da7dae6d13788b64a9fc3
Author: Christian Hergert <christian hergert me>
Date:   Wed May 6 13:39:55 2015 -0700

    editorconfig: with layered file settings, no matches is okay
    
    We deal with this when checking of the child file settings have the -set
    properties set. So it is perfectly fine to have not found any matches.

 libide/editorconfig/editorconfig-glib.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/libide/editorconfig/editorconfig-glib.c b/libide/editorconfig/editorconfig-glib.c
index ac0df94..21ab567 100644
--- a/libide/editorconfig/editorconfig-glib.c
+++ b/libide/editorconfig/editorconfig-glib.c
@@ -77,15 +77,6 @@ editorconfig_glib_read (GFile         *file,
 
   count = editorconfig_handle_get_name_value_count (handle);
 
-  if (!count)
-    {
-      g_set_error (error,
-                   G_IO_ERROR,
-                   G_IO_ERROR_FAILED,
-                   "no config options were found.");
-      goto cleanup;
-    }
-
   ret = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, _g_value_free);
 
   for (i = 0; i < count; i++)


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