Skip to content

Commit

Permalink
Optim : Condition is unnecessary because it is checked by 'is_array'
Browse files Browse the repository at this point in the history
  • Loading branch information
s-renier-taonix-fr authored and f3l1x committed Feb 13, 2023
1 parent 68e13d9 commit cc16c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nusoap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3515,7 +3515,7 @@ function parseCookie($cookie_str)
function getCookiesForRequest($cookies, $secure = false)
{
$cookie_str = '';
if ((!is_null($cookies)) && (is_array($cookies))) {
if ((is_array($cookies))) {
foreach ($cookies as $cookie) {
if (!is_array($cookie)) {
continue;
Expand Down

0 comments on commit cc16c86

Please sign in to comment.