Skip to content

Commit 4bd066a

Browse files
committed
Remove redundant condition
Signed-off-by: Kamil Tekiela <[email protected]>
1 parent 0e99dec commit 4bd066a

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

psalm-baseline.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,9 +1417,6 @@
14171417
<PossiblyInvalidIterator>
14181418
<code><![CDATA[$this->options['formats']]]></code>
14191419
</PossiblyInvalidIterator>
1420-
<RedundantConditionGivenDocblockType>
1421-
<code><![CDATA[$curr->type === Token::TYPE_KEYWORD]]></code>
1422-
</RedundantConditionGivenDocblockType>
14231420
</file>
14241421
<file src="src/Utils/Query.php">
14251422
<InvalidNullableReturnType>

src/Utils/Formatter.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,10 +440,7 @@ public function formatList($list)
440440
&& empty(self::$inlineClauses[$lastClause])
441441
&& (
442442
$curr->type !== Token::TYPE_KEYWORD
443-
|| (
444-
$curr->type === Token::TYPE_KEYWORD
445-
&& $curr->flags & Token::FLAG_KEYWORD_FUNCTION
446-
)
443+
|| ($curr->flags & Token::FLAG_KEYWORD_FUNCTION)
447444
)
448445
) {
449446
$formattedOptions = true;

0 commit comments

Comments
 (0)