Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8eebe03f authored by Matheo Levallois's avatar Matheo Levallois
Browse files

refactor: apply suggestion

parent 291b9cfe
Loading
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -78,14 +78,10 @@ class ValidateAppAgeLimitUseCase @Inject constructor(
                data = ContentRatingValidity(true)
            )

            hasNoContentRatingOnGPlay(app) -> ResultSupreme.Success(
            hasNoContentRatingOnGPlay(app) || isParentalGuidance(app) -> ResultSupreme.Success(
                data = ContentRatingValidity(isValid = false, requestPin = true)
            )

            isParentalGuidance(app) -> ResultSupreme.Success(
                data = ContentRatingValidity(false, requestPin = true)
            )

            else -> validateAgeLimit(ageGroup, app)
        }
    }