Skip to content

Commit

Permalink
cs: Same operation, clear remaining todo.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Dec 29, 2021
1 parent b2e1dc9 commit 518209b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Operation/Same.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,7 @@ static function (Iterator $iterator) use ($other, $comparatorCallback): Generato
$other->next();
}

// TODO: Use single return line when FriendsOfPHP/PHP-CS-Fixer/issues/5810 is fixed.
if ($iterator->valid() !== $other->valid()) {
return yield false;
}

return yield true;
return $iterator->valid() !== $other->valid();
};
}
}

0 comments on commit 518209b

Please sign in to comment.