From c5ec2ad9dcc505513ca4eef9b674d26e512c9bbc Mon Sep 17 00:00:00 2001 From: abdulkareem-siddiq <73565559+abdulkareem-siddiq@users.noreply.github.com> Date: Tue, 14 Dec 2021 19:49:33 -0800 Subject: [PATCH] Updated to mark success() as const --- src/azure-cosmos-restcl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/azure-cosmos-restcl.hpp b/src/azure-cosmos-restcl.hpp index 1b46d54..b807c83 100644 --- a/src/azure-cosmos-restcl.hpp +++ b/src/azure-cosmos-restcl.hpp @@ -358,7 +358,7 @@ namespace siddiqsoft /// @brief Checks if the response is successful based on the HTTP status code /// @return true iff the statusCode < 300 - bool success() + bool success() const { return statusCode < 300; } @@ -668,7 +668,7 @@ namespace siddiqsoft /// @brief Gets the current configuration object /// @return Configuration json - const nlohmann::json& configuration() + const nlohmann::json& configuration() const { return config; }