Skip to content

Commit

Permalink
replace .size() == 0 with empty() (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire authored Mar 20, 2024
1 parent 0170547 commit 9460433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ada/url-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ inline std::ostream &operator<<(std::ostream &out, const ada::url &u) {
if (query.has_value()) {
out.search_start = uint32_t(running_index);
running_index += get_search().size();
if (get_search().size() == 0) {
if (get_search().empty()) {
running_index++;
}
}
Expand Down

0 comments on commit 9460433

Please sign in to comment.