summaryrefslogtreecommitdiff
path: root/src/other_tools/git_operations/git_config_settings.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-02-29 15:17:26 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-02-29 15:57:17 +0100
commite8a9df96a084dc8c34d928a63e8fedbcb2eec9b6 (patch)
tree30976722418f87b620441e4698590108e56f25bb /src/other_tools/git_operations/git_config_settings.cpp
parenta0e21b45baac40462089d7b80faa33ebabe7b010 (diff)
downloadjustbuild-e8a9df96a084dc8c34d928a63e8fedbcb2eec9b6.tar.gz
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.
Diffstat (limited to 'src/other_tools/git_operations/git_config_settings.cpp')
-rw-r--r--src/other_tools/git_operations/git_config_settings.cpp4
1 files changed, 2 insertions, 2 deletions
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<ProxyInfo> {
+[[nodiscard]] auto GetProxyAsPermissiveUrl(
+ std::string const& proxy_url) noexcept -> std::optional<ProxyInfo> {
// 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