[gnome-games] grilo: Use Soup.Status.OK rather than magic number



commit 2908deee7a7a112b55b53f63764efe1917a5ad2b
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sat Aug 13 14:48:54 2016 +0200

    grilo: Use Soup.Status.OK rather than magic number

 src/grilo/grilo-cover.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/grilo/grilo-cover.vala b/src/grilo/grilo-cover.vala
index 1023104..5459b59 100644
--- a/src/grilo/grilo-cover.vala
+++ b/src/grilo/grilo-cover.vala
@@ -64,7 +64,7 @@ public class Games.GriloCover : Object, Cover {
                var message = new Soup.Message ("GET", uri);
 
                session.queue_message (message, (sess, mess) => {
-                       if (mess.status_code != 200) {
+                       if (mess.status_code != Soup.Status.OK) {
                                debug ("Failed to load %s: %u %s.", uri, mess.status_code, 
mess.reason_phrase);
 
                                return;


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