Skip to content

Commit

Permalink
Updated to mark success() as const
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulkareem-siddiq authored Dec 15, 2021
1 parent b9d8666 commit c5ec2ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/azure-cosmos-restcl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit c5ec2ad

Please sign in to comment.