Skip to content

Commit

Permalink
Remove unnecessary variable (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanDelMar authored Aug 28, 2024
1 parent 9a2b025 commit ccde227
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Visitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,8 @@ private function postProcessNode(Node $node): void
*/
private function generateAdditionalTagsFromDoc(Doc $docComment): array
{
$docCommentText = $docComment->getText();

try {
$docblock = $this->docBlockFactory->create($docCommentText);
$docblock = $this->docBlockFactory->create($docComment->getText());
} catch (\RuntimeException | \InvalidArgumentException $e) {
return [];
}
Expand Down

0 comments on commit ccde227

Please sign in to comment.