From e8a9df96a084dc8c34d928a63e8fedbcb2eec9b6 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 29 Feb 2024 15:17:26 +0100 Subject: just-mr and serve: Extend use of noexcept specifier The just serve client-side and API methods, as well as just-mr utilities should use the noexcept specifier. --- src/other_tools/git_operations/git_config_settings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/other_tools/git_operations/git_config_settings.cpp') diff --git a/src/other_tools/git_operations/git_config_settings.cpp b/src/other_tools/git_operations/git_config_settings.cpp index a6291c4b..c820aa32 100644 --- a/src/other_tools/git_operations/git_config_settings.cpp +++ b/src/other_tools/git_operations/git_config_settings.cpp @@ -67,8 +67,8 @@ struct ConfigKeyMatchCompare { /// in a more permissive way, mirroring what git and curl internally do, then /// returns the reconstructed URL if parsing succeeded, or a nullopt ProxyInfo. /// Returns nullopt on unexpected errors. -[[nodiscard]] auto GetProxyAsPermissiveUrl(std::string const& proxy_url) - -> std::optional { +[[nodiscard]] auto GetProxyAsPermissiveUrl( + std::string const& proxy_url) noexcept -> std::optional { // parse proxy string with permissive options: // use_non_support_scheme allows for non-standard schemes to be parsed; // use_guess_scheme tries to figure out the scheme from the hostname if none -- cgit v1.2.3