mirror of
https://github.com/openai/codex.git
synced 2026-10-23 18:08:45 +00:00
fix
This commit is contained in:
@@ -2161,7 +2161,7 @@ fn plugin_detail_request_for_entry(
|
||||
}
|
||||
|
||||
fn plugin_request_name(plugin: &PluginSummary) -> String {
|
||||
if matches!(plugin.source, PluginSource::Remote)
|
||||
if matches!(&plugin.source, PluginSource::Remote)
|
||||
&& let Some(remote_plugin_id) = plugin_remote_identity(plugin)
|
||||
{
|
||||
return remote_plugin_id;
|
||||
@@ -2178,7 +2178,7 @@ fn plugin_remote_identity(plugin: &PluginSummary) -> Option<String> {
|
||||
}
|
||||
|
||||
fn plugin_uninstall_id(plugin: &PluginSummary) -> Option<String> {
|
||||
if matches!(plugin.source, PluginSource::Remote) {
|
||||
if matches!(&plugin.source, PluginSource::Remote) {
|
||||
return plugin_remote_identity(plugin);
|
||||
}
|
||||
Some(plugin.id.clone())
|
||||
|
||||
Reference in New Issue
Block a user