From ed0cd750a98a9334f95d99a5ba4ce3abe17538f1 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 12 Jul 2024 09:56:36 +0200 Subject: test: Reduce verbosity in config methods As the classes describe the config type, their static creators can have generic names, which reduces unnecessary verbosity. --- test/utils/serve_service/test_serve_config.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/utils/serve_service/test_serve_config.hpp') diff --git a/test/utils/serve_service/test_serve_config.hpp b/test/utils/serve_service/test_serve_config.hpp index c38c2dfe..4b94d0f7 100644 --- a/test/utils/serve_service/test_serve_config.hpp +++ b/test/utils/serve_service/test_serve_config.hpp @@ -26,7 +26,7 @@ class TestServeConfig final { public: - [[nodiscard]] static auto ReadServeConfigFromEnvironment() noexcept + [[nodiscard]] static auto ReadFromEnvironment() noexcept -> std::optional { RemoteServeConfig::Builder builder; auto config = builder.SetRemoteAddress(ReadRemoteServeAddressFromEnv()) -- cgit v1.2.3