Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def hasFitmentInformation(fitmentPage: FitmentPage): Boolean = {
- if(fitmentPage.status.name != "SUCCESS") {
- logger.trace(s"hasFitmentInformation returning false, since status was not SUCCESS: ${fitmentPage.status.name}")
- return false
- }
- if(fitmentPage.fitmentData.isEmpty) {
- logger.trace(s"hasFitmentInformation returning false, since data was an empty list, json: ${fitmentPage.fitmentData}")
- return false
- }
- true
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement