Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
src: removes unnecessary if statement from EndsInANumber in node_url.cc
  • Loading branch information
miguelteixeiraa committed Jan 17, 2023
commit a683d340f33c4094cb84b5087b46e1921d610218
5 changes: 0 additions & 5 deletions src/node_url.cc
Original file line number Diff line number Diff line change
Expand Up @@ -421,12 +421,7 @@ bool IsIPv4NumberValid(std::string_view input) {

return input.find_first_not_of("0123456789abcdefABCDEF", 2) ==
Comment thread
anonrig marked this conversation as resolved.
Outdated
std::string_view::npos;

} else {
Comment thread
anonrig marked this conversation as resolved.
Outdated
if (input.size() == 1) {
return true;
}

return input.find_first_not_of("01234567", 1) == std::string_view::npos;
}
}
Expand Down