Skip to content

Commit a9b69a7

Browse files
committed
Made code improvements as suggested
1 parent da540e8 commit a9b69a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/code/Magento/Paypal/Model/SdkUrl.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,8 @@ private function getAllowedFunding(): string
217217
// If Pay Later is enabled, then only paylater parameter will go in enable-funding parameter list
218218
if ($payLaterActive == false) {
219219
unset($this->supportedPaymentMethods['paylater']);
220-
return implode(',', $this->supportedPaymentMethods);
221-
} else {
222-
return implode(',', $this->supportedPaymentMethods);
223220
}
221+
return implode(',', $this->supportedPaymentMethods);
224222
}
225223

226224
/**

0 commit comments

Comments
 (0)