From ce43aa82337ae4932f2f50454bb65fcab07b4c4d Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 26 May 2021 10:39:18 -0700 Subject: [PATCH] Prettyfiy Code. --- BodyshopUploader/Utils/GraphQL.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/BodyshopUploader/Utils/GraphQL.cs b/BodyshopUploader/Utils/GraphQL.cs index ac8bb58..52bd3cc 100644 --- a/BodyshopUploader/Utils/GraphQL.cs +++ b/BodyshopUploader/Utils/GraphQL.cs @@ -27,7 +27,7 @@ namespace BodyshopPartner.Utils using (var g = Utils.GraphQL.CreateGQLClient()) { logger.Trace("Firing a GQL Query!"); - logger.Trace("Firing GQL Query: {0} {1}", r.Query.ToString(), r.Variables); + logger.Trace("Firing GQL Query: {0} {1}", r.Query.ToString(), r.Variables); var graphQLResponse = await g.SendQueryAsync(r); if (graphQLResponse.Errors == null) { @@ -49,7 +49,9 @@ namespace BodyshopPartner.Utils }; exceptionString = exceptionString + x + ";"; }); - if (jwtExpired && !lastTry) { await Utils.Auth.Refresh(); + if (jwtExpired && !lastTry) + { + await Utils.Auth.Refresh(); return (ExecuteQuery(r, true)); } else @@ -57,7 +59,7 @@ namespace BodyshopPartner.Utils logger.Error("---------------------"); throw new Exception(exceptionString); } - + } } }