fix(ci): satisfy strict lint delta on security follow-ups
This commit is contained in:
parent
60d81fb706
commit
a6ca68a4fb
3 changed files with 11 additions and 3 deletions
|
|
@ -169,7 +169,11 @@ impl Tool for DelegateTool {
|
|||
.api_key
|
||||
.clone()
|
||||
.or_else(|| self.fallback_credential.clone());
|
||||
let provider_credential = provider_credential_owned.as_ref().map(String::as_str);
|
||||
let provider_credential = if let Some(value) = provider_credential_owned.as_ref() {
|
||||
Some(value.as_str())
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
let provider: Box<dyn Provider> =
|
||||
match providers::create_provider(&agent_config.provider, provider_credential) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue