mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-01 00:15:30 +08:00
Fix lint error
Signed-off-by: JinHai-CN <hai.jin@zilliz.com>
This commit is contained in:
parent
44a384cfe7
commit
fb85d8b3f0
@ -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();
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user