Skip to content

Commit 0aaf686

Browse files
committed
refac:tuning the log if the callback is null in verifyPurchase
1 parent f533f6c commit 0aaf686

File tree

1 file changed

+1
-5
lines changed
  • Adjust/sdk-core/src/main/java/com/adjust/sdk

1 file changed

+1
-5
lines changed

Adjust/sdk-core/src/main/java/com/adjust/sdk/Adjust.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,7 @@ public static void getSdkVersion(final OnSdkVersionReadListener onSdkVersionRead
433433
*/
434434
public static void verifyPurchase(final AdjustPurchase purchase, final OnPurchaseVerificationFinishedListener callback) {
435435
if (callback == null) {
436-
AdjustFactory.getLogger().error("callback cannot be null");
437-
return;
438-
}
439-
if (purchase == null) {
440-
AdjustFactory.getLogger().error("purchase cannot be null");
436+
AdjustFactory.getLogger().error("Purchase verification aborted because verification callback is null");
441437
return;
442438
}
443439
AdjustInstance adjustInstance = Adjust.getDefaultInstance();

0 commit comments

Comments
 (0)