From 6739da8a8e271a82d1bf8ca79bba58640ae6e743 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 22 May 2026 01:43:34 +0900 Subject: refactor(php-shim): remove unnecessary methods --- crates/shirabe/src/command/remove_command.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/shirabe/src/command/remove_command.rs') diff --git a/crates/shirabe/src/command/remove_command.rs b/crates/shirabe/src/command/remove_command.rs index ab322f9..49b21dc 100644 --- a/crates/shirabe/src/command/remove_command.rs +++ b/crates/shirabe/src/command/remove_command.rs @@ -477,7 +477,7 @@ impl RemoveCommand { let allow_plugins = composer.get_config().borrow_mut().get("allow-plugins"); let removed_plugins: Vec = - if let Some(allow_map) = allow_plugins.as_ref().and_then(|v| v.as_array()) { + if let Some(allow_map) = allow_plugins.as_opt().and_then(|v| v.as_array()) { packages .iter() .filter(|p| allow_map.contains_key(p.as_str())) @@ -488,11 +488,11 @@ impl RemoveCommand { }; if !dry_run - && allow_plugins.as_ref().and_then(|v| v.as_array()).is_some() + && allow_plugins.as_opt().and_then(|v| v.as_array()).is_some() && !removed_plugins.is_empty() { let allow_map_len = allow_plugins - .as_ref() + .as_opt() .and_then(|v| v.as_array()) .map(|m| m.len()) .unwrap_or(0); -- cgit v1.3.1