From fb85d8b3f0aee98137bb71cefd57f962756ecb1e Mon Sep 17 00:00:00 2001 From: JinHai-CN Date: Sat, 25 Apr 2020 11:21:58 +0800 Subject: [PATCH] Fix lint error Signed-off-by: JinHai-CN --- core/src/server/web_impl/utils/Util.cpp | 9 +++------ core/src/server/web_impl/utils/Util.h | 2 -- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/core/src/server/web_impl/utils/Util.cpp b/core/src/server/web_impl/utils/Util.cpp index 048fac3535..aa1a1820b3 100644 --- a/core/src/server/web_impl/utils/Util.cpp +++ b/core/src/server/web_impl/utils/Util.cpp @@ -57,8 +57,7 @@ CopyBinRowRecords(const OList::ObjectWrapper>::ObjectWrapper& reco } Status -ParseQueryInteger(const OQueryParams& query_params, const std::string& key, int64_t& value, - bool nullable) { +ParseQueryInteger(const OQueryParams& query_params, const std::string& key, int64_t& value, bool nullable) { auto query = query_params.get(key.c_str()); if (nullptr != query.get() && query->getSize() > 0) { std::string value_str = query->std_str(); @@ -76,8 +75,7 @@ ParseQueryInteger(const OQueryParams& query_params, const std::string& key, int6 } Status -ParseQueryStr(const OQueryParams& query_params, const std::string& key, std::string& value, - bool nullable) { +ParseQueryStr(const OQueryParams& query_params, const std::string& key, std::string& value, bool nullable) { auto query = query_params.get(key.c_str()); if (nullptr != query.get() && query->getSize() > 0) { value = query->std_str(); @@ -89,8 +87,7 @@ ParseQueryStr(const OQueryParams& query_params, const std::string& key, std::str } Status -ParseQueryBool(const OQueryParams& query_params, const std::string& key, bool& value, - bool nullable) { +ParseQueryBool(const OQueryParams& query_params, const std::string& key, bool& value, bool nullable) { auto query = query_params.get(key.c_str()); if (nullptr != query.get() && query->getSize() > 0) { std::string value_str = query->std_str(); diff --git a/core/src/server/web_impl/utils/Util.h b/core/src/server/web_impl/utils/Util.h index 6f2fac2d11..9ceaa37ace 100644 --- a/core/src/server/web_impl/utils/Util.h +++ b/core/src/server/web_impl/utils/Util.h @@ -37,8 +37,6 @@ ParseQueryStr(const OQueryParams& query_params, const std::string& key, std::str Status ParseQueryBool(const OQueryParams& query_params, const std::string& key, bool& value, bool nullable = true); - - } // namespace web } // namespace server } // namespace milvus