From 5bb92505dc0409ab51f937f23df52873f0ca2bf5 Mon Sep 17 00:00:00 2001 From: Hasib Prince Date: Wed, 10 Jul 2024 00:24:52 +0600 Subject: [PATCH] refactor: minor change --- .../foundation/e/apps/domain/ValidateAppAgeLimitUseCase.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/foundation/e/apps/domain/ValidateAppAgeLimitUseCase.kt b/app/src/main/java/foundation/e/apps/domain/ValidateAppAgeLimitUseCase.kt index 89c0c51e9..8b0b28588 100644 --- a/app/src/main/java/foundation/e/apps/domain/ValidateAppAgeLimitUseCase.kt +++ b/app/src/main/java/foundation/e/apps/domain/ValidateAppAgeLimitUseCase.kt @@ -51,12 +51,12 @@ class ValidateAppAgeLimitUseCase @Inject constructor( return when { isParentalControlDisabled(ageGroup) -> ResultSupreme.Success( - data = ContentRatingValidity(true,) + data = ContentRatingValidity(true) ) isKnownNsfwApp(app) -> ResultSupreme.Success(data = ContentRatingValidity(false)) isCleanApkApp(app) -> ResultSupreme.Success( - ContentRatingValidity(!isNsfwAppByCleanApkApi(app)) + data = ContentRatingValidity(isValid = !isNsfwAppByCleanApkApi(app)) ) isWhiteListedCleanApkApp(app) -> ResultSupreme.Success( -- GitLab