Fix clippy::len_zero
lint style violations (#36589)
Related: #36577 Release Notes: - N/A --------- Signed-off-by: Umesh Yadav <git@umesh.dev>
This commit is contained in:
parent
92352f97ad
commit
1e6cefaa56
24 changed files with 46 additions and 46 deletions
|
@ -577,7 +577,7 @@ pub fn into_google(
|
|||
top_k: None,
|
||||
}),
|
||||
safety_settings: None,
|
||||
tools: (request.tools.len() > 0).then(|| {
|
||||
tools: (!request.tools.is_empty()).then(|| {
|
||||
vec![google_ai::Tool {
|
||||
function_declarations: request
|
||||
.tools
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue