Skip to content

Commit 478ad93

Browse files
Mikkel Sørensenkirre-bylund
authored andcommitted
Removed redundant code and a sneaky comment
1 parent 19a3863 commit 478ad93

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Runtime/Client/LootLockerServerRequest.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -239,16 +239,6 @@ public static T Deserialize<T>(LootLockerResponse serverResponse,
239239
return new T() { success = false, errorData = serverResponse.errorData, statusCode = serverResponse.statusCode, text = serverResponse.text };
240240
}
241241

242-
/*
243-
* Turborilla:
244-
* Patched based on conversation with LootLocker. I suspect that some users are getting login pages for wifi or something else instead of the intended response from LootLocker servers.
245-
* We have similar checks in our other projects.
246-
*/
247-
if (serverResponse.text.StartsWith("<"))
248-
{
249-
LootLockerLogger.GetForLogLevel()("JSON Starts with <, info: \n statusCode: " + serverResponse.statusCode + "\n body: " + serverResponse.text);
250-
return new T() { success = false, errorData = serverResponse.errorData, statusCode = serverResponse.statusCode };
251-
}
252242
var response = LootLockerJson.DeserializeObject<T>(serverResponse.text, options ?? LootLockerJsonSettings.Default) ?? new T();
253243

254244
response.text = serverResponse.text;

0 commit comments

Comments
 (0)