Skip to content

Commit 77c170b

Browse files
committed
Just formatting.
1 parent 680ce62 commit 77c170b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

include/ada/url-inl.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ namespace ada {
1919
[[nodiscard]] ada_really_inline bool url::has_credentials() const noexcept {
2020
return !username.empty() || !password.empty();
2121
}
22-
[[nodiscard]] ada_really_inline bool url::has_port()
23-
const noexcept {
22+
[[nodiscard]] ada_really_inline bool url::has_port() const noexcept {
2423
return port.has_value();
2524
}
2625
[[nodiscard]] inline bool url::cannot_have_credentials_or_port() const {
@@ -153,9 +152,13 @@ inline void url::clear_pathname() { path.clear(); }
153152

154153
inline void url::clear_search() { query = std::nullopt; }
155154

156-
[[nodiscard]] inline bool url::has_hash() const noexcept { return hash.has_value(); }
155+
[[nodiscard]] inline bool url::has_hash() const noexcept {
156+
return hash.has_value();
157+
}
157158

158-
[[nodiscard]] inline bool url::has_search() const noexcept { return query.has_value(); }
159+
[[nodiscard]] inline bool url::has_search() const noexcept {
160+
return query.has_value();
161+
}
159162

160163
inline void url::set_protocol_as_file() { type = ada::scheme::type::FILE; }
161164

include/ada/url.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ struct url : url_base {
286286
[[nodiscard]] inline bool has_hash() const noexcept override;
287287
/** @return true if the URL has a search component */
288288
[[nodiscard]] inline bool has_search() const noexcept override;
289+
289290
private:
290291
friend ada::url ada::parser::parse_url<ada::url>(std::string_view,
291292
const ada::url *);

0 commit comments

Comments
 (0)