Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
AydinHassan committed Dec 10, 2022
1 parent f9704b7 commit 3d3568a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builder/CliMenuBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ private function extractShortcut(string $title) : ?string
throw InvalidShortcutException::fromShortcut($match[1]);
}

return isset($match[1]) ? strtolower($match[1]) : null;
return strtolower($match[1]);
}

private function processItemShortcut(MenuItemInterface $item) : void
Expand Down

0 comments on commit 3d3568a

Please sign in to comment.