Skip to content

Commit

Permalink
remove duplicated if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosEduR committed Jun 10, 2024
1 parent fb342b5 commit 2c8a735
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,10 +553,8 @@ result_type parse_url_impl(std::string_view user_input,
url.update_base_search(helpers::substring(url_data, input_position),
query_percent_encode_set);
ada_log("QUERY update_base_search completed ");
if constexpr (store_values) {
if (fragment.has_value()) {
url.update_unencoded_base_hash(*fragment);
}
if (fragment.has_value()) {
url.update_unencoded_base_hash(*fragment);
}
}
return url;
Expand Down

0 comments on commit 2c8a735

Please sign in to comment.