Skip to content

Commit 1cc7394

Browse files
committed
Remove redundant condition
Signed-off-by: Kamil Tekiela <[email protected]>
1 parent f9f1e53 commit 1cc7394

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
@@ -1367,9 +1367,6 @@
13671367
<PossiblyInvalidIterator>
13681368
<code><![CDATA[$this->options['formats']]]></code>
13691369
</PossiblyInvalidIterator>
1370-
<RedundantConditionGivenDocblockType>
1371-
<code><![CDATA[$curr->type === Token::TYPE_KEYWORD]]></code>
1372-
</RedundantConditionGivenDocblockType>
13731370
</file>
13741371
<file src="src/Utils/Query.php">
13751372
<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)