Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosEduR committed Jan 10, 2025
1 parent b460193 commit 7cbd2ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/url.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,7 @@ bool url::set_port(const std::string_view input) {
}

uint16_t parsed_port{};
auto r = std::from_chars(trimmed.data(), trimmed.data() + trimmed.size(),
parsed_port);
std::from_chars(trimmed.data(), trimmed.data() + trimmed.size(), parsed_port);
if (parsed_port < 1) {
return false;
}
Expand Down
3 changes: 1 addition & 2 deletions src/url_aggregator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,7 @@ bool url_aggregator::set_port(const std::string_view input) {
}

uint16_t parsed_port{};
auto r = std::from_chars(trimmed.data(), trimmed.data() + trimmed.size(),
parsed_port);
std::from_chars(trimmed.data(), trimmed.data() + trimmed.size(), parsed_port);
if (parsed_port < 1) {
return false;
}
Expand Down

0 comments on commit 7cbd2ca

Please sign in to comment.