Fix lint error

Signed-off-by: JinHai-CN <hai.jin@zilliz.com>
This commit is contained in:
JinHai-CN 2020-04-25 11:21:58 +08:00
parent 44a384cfe7
commit fb85d8b3f0
2 changed files with 3 additions and 8 deletions

View File

@ -57,8 +57,7 @@ CopyBinRowRecords(const OList<OList<OInt64>::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();

View File

@ -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