diff options
Diffstat (limited to 'crates/shirabe/src/util/tar.rs')
| -rw-r--r-- | crates/shirabe/src/util/tar.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/shirabe/src/util/tar.rs b/crates/shirabe/src/util/tar.rs index 2d44392..95a6fde 100644 --- a/crates/shirabe/src/util/tar.rs +++ b/crates/shirabe/src/util/tar.rs @@ -47,10 +47,10 @@ impl Tar { "{}/composer.json", top_level_paths.keys().next().cloned().unwrap_or_default() ); - if !top_level_paths.is_empty() { - if let Some(file) = phar.get(&composer_json_path) { - return Ok(file.get_content()); - } + if !top_level_paths.is_empty() + && let Some(file) = phar.get(&composer_json_path) + { + return Ok(file.get_content()); } Err(anyhow::anyhow!(RuntimeException { |
