Skip to content

Commit 43cb064

Browse files
committed
Simplified validateRequestData to work without an else expression
1 parent 44e89c7 commit 43cb064

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/Braintree/Controller/Paypal

1 file changed

+1
-2
lines changed

app/code/Magento/Braintree/Controller/Paypal/Review.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ private function validateRequestData($requestData)
9898
{
9999
if (is_array($requestData)) {
100100
return !empty($requestData['nonce']) && !empty($requestData['details']);
101-
} else {
102-
return false;
103101
}
102+
return false;
104103
}
105104
}

0 commit comments

Comments
 (0)