diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-22 01:43:34 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-22 01:44:05 +0900 |
| commit | 6739da8a8e271a82d1bf8ca79bba58640ae6e743 (patch) | |
| tree | ce397b02662cf3c101cb36545b0a6c94ddc21826 /crates/shirabe/src/command/remove_command.rs | |
| parent | 0b06f54103490e3ce5658e82bbc0119633e26cd8 (diff) | |
| download | php-shirabe-6739da8a8e271a82d1bf8ca79bba58640ae6e743.tar.gz php-shirabe-6739da8a8e271a82d1bf8ca79bba58640ae6e743.tar.zst php-shirabe-6739da8a8e271a82d1bf8ca79bba58640ae6e743.zip | |
refactor(php-shim): remove unnecessary methods
Diffstat (limited to 'crates/shirabe/src/command/remove_command.rs')
| -rw-r--r-- | crates/shirabe/src/command/remove_command.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<String> = - 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); |
