Skip to content

Commit

Permalink
Update SlashCommandHandler.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiernan-Alderman committed May 21, 2024
1 parent d1f5c7a commit 5a5bcfe
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions dGame/dUtilities/SlashCommandHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ void GMZeroCommands::Help(Entity* entity, const SystemAddress& sysAddr, const st
trimmedArgs.erase(trimmedArgs.begin(), std::find_if_not(trimmedArgs.begin(), trimmedArgs.end(), [](unsigned char ch) {
return std::isspace(ch);
}));
trimmedArgs.erase(std::find_if_not(trimmedArgs.rbegin(), trimmedArgs.rend(), [](unsigned char ch) {
return std::isspace(ch);
}).base(), trimmedArgs.end());

std::optional<int> parsedPage = GeneralUtils::TryParse<int>(trimmedArgs);
if (trimmedArgs.empty() || parsedPage.has_value()) {
size_t page = parsedPage.value_or(1);
Expand Down

0 comments on commit 5a5bcfe

Please sign in to comment.