File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff 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
154153inline 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
160163inline void url::set_protocol_as_file () { type = ada::scheme::type::FILE; }
161164
Original file line number Diff line number Diff 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 *);
You can’t perform that action at this time.
0 commit comments