Skip to content

Commit

Permalink
Remove unnecessary validation now that type is unsigned short
Browse files Browse the repository at this point in the history
  • Loading branch information
0xg0nz0 committed Feb 18, 2024
1 parent 943b9ab commit 91c5ad0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sdk/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ struct Options {
if (hostname.empty()) {
throw std::invalid_argument("Hostname cannot be empty");
}
if (port < 0 || port > 65535) {
throw std::invalid_argument("Port must be between 0 and 65535");
}
}
};

Expand Down

0 comments on commit 91c5ad0

Please sign in to comment.