[gnome-nibbles] Tolerate extra files in the scores directory



commit d118b2b0140c4cd48db6917f0114c9a64720e368
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Fri Feb 12 22:24:09 2016 -0600

    Tolerate extra files in the scores directory

 src/gnome-nibbles.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index 46fec3b..5d7ccc1 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -596,14 +596,14 @@ public class Nibbles : Gtk.Application
     * * Scoring
     \*/
 
-    private Games.Scores.Category category_request (string key)
+    private Games.Scores.Category? category_request (string key)
     {
         foreach (var cat in scorecats)
         {
             if (key == cat.key)
                 return cat;
         }
-        assert_not_reached ();
+        return null;
     }
 
     private void create_scores ()


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