[gnome-software/wip/rancell/ubuntuone] f



commit 580ec5b99af8078ac5835880fceea62ff911b18e
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jul 4 10:53:49 2016 +0100

    f

 src/plugins/gs-plugin-ubuntuone.c |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/src/plugins/gs-plugin-ubuntuone.c b/src/plugins/gs-plugin-ubuntuone.c
index cc86ba1..3cb8786 100644
--- a/src/plugins/gs-plugin-ubuntuone.c
+++ b/src/plugins/gs-plugin-ubuntuone.c
@@ -128,31 +128,29 @@ gs_plugin_auth_login (GsPlugin *plugin, GsAuth *auth,
                message = json_object_get_string_member (json_node_get_object (response_root), "message");
                code = json_object_get_string_member (json_node_get_object (response_root), "code");
 
-               if (g_strcmp0 (code, "INVALID_CREDENTIALS") == 0 || g_strcmp0 (code, "EMAIL_INVALIDATED") == 
0 || g_strcmp0 (code, "TWOFACTOR_FAILURE") == 0) {
+               if (g_strcmp0 (code, "INVALID_CREDENTIALS") == 0 ||
+                   g_strcmp0 (code, "EMAIL_INVALIDATED") == 0 ||
+                   g_strcmp0 (code, "TWOFACTOR_FAILURE") == 0) {
                        g_set_error_literal (error,
                                             GS_PLUGIN_ERROR,
                                             GS_PLUGIN_ERROR_AUTH_INVALID,
                                             message);
-               }
-               else if (g_strcmp0 (code, "ACCOUNT_SUSPENDED") == 0) {
+               } else if (g_strcmp0 (code, "ACCOUNT_SUSPENDED") == 0) {
                        g_set_error_literal (error,
                                             GS_PLUGIN_ERROR,
                                             GS_PLUGIN_ERROR_ACCOUNT_SUSPENDED,
                                             message);
-               }
-               else if (g_strcmp0 (code, "ACCOUNT_DEACTIVATED") == 0) {
+               } else if (g_strcmp0 (code, "ACCOUNT_DEACTIVATED") == 0) {
                        g_set_error_literal (error,
                                             GS_PLUGIN_ERROR,
                                             GS_PLUGIN_ERROR_ACCOUNT_DEACTIVATED,
                                             message);
-               }
-               else if (g_strcmp0 (code, "TWOFACTOR_REQUIRED") == 0) {
+               } else if (g_strcmp0 (code, "TWOFACTOR_REQUIRED") == 0) {
                        g_set_error_literal (error,
                                             GS_PLUGIN_ERROR,
                                             GS_PLUGIN_ERROR_PIN_REQUIRED,
                                             message);
-               }
-               else {
+               } else {
                        g_set_error_literal (error,
                                             GS_PLUGIN_ERROR,
                                             GS_PLUGIN_ERROR_FAILED,


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