Skip to content

Commit c12423a

Browse files
committed
Small cleanup
1 parent 90d7a09 commit c12423a

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

Runtime/Game/LootLockerSDKManager.cs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,7 @@ public static void StartGuestSession(Action<LootLockerGuestSessionResponse> onCo
154154
{
155155
if (!CheckInitialized())
156156
{
157-
LootLockerGuestSessionResponse response = new LootLockerGuestSessionResponse();
158-
response.success = false;
159-
response.success = false;
160-
response.hasError = true;
161-
response.Error = "SDk not initialised";
162-
response.text = "SDk not initialised";
163-
onComplete?.Invoke(response);
157+
onComplete?.Invoke(LootLockerResponseFactory.SDKNotInitializedError<LootLockerGuestSessionResponse>());
164158
return;
165159
}
166160

@@ -205,12 +199,7 @@ public static void StartWhiteLabelSession(string email, string password, Action<
205199
{
206200
if (!CheckInitialized())
207201
{
208-
LootLockerSessionResponse response = new LootLockerSessionResponse();
209-
response.success = false;
210-
response.hasError = true;
211-
response.Error = "SDk not initialised";
212-
response.text = "SDk not initialised";
213-
onComplete?.Invoke(response);
202+
onComplete?.Invoke(LootLockerResponseFactory.SDKNotInitializedError<LootLockerSessionResponse>());
214203
return;
215204
}
216205
LootLockerWhiteLabelSessionRequest sessionRequest = new LootLockerWhiteLabelSessionRequest(email, password);

Runtime/Game/Requests/LootLockerSessionRequest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ public static void WhiteLabelSession(LootLockerGetRequest data, Action<LootLocke
119119
LootLockerConfig.current.UpdateToken(response.session_token, (data as LootLockerSessionRequest)?.player_identifier);
120120
}
121121

122-
//LootLockerSDKManager.DebugMessage(serverResponse.text, !string.IsNullOrEmpty(serverResponse.Error));
123122
response.text = serverResponse.text;
124123
response.success = serverResponse.success;
125124
response.Error = serverResponse.Error; response.statusCode = serverResponse.statusCode;

0 commit comments

Comments
 (0)