diff options
Diffstat (limited to 'crates/shirabe/src/util/zip.rs')
| -rw-r--r-- | crates/shirabe/src/util/zip.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe/src/util/zip.rs b/crates/shirabe/src/util/zip.rs index 4231db4..dbb2627 100644 --- a/crates/shirabe/src/util/zip.rs +++ b/crates/shirabe/src/util/zip.rs @@ -34,8 +34,8 @@ impl Zip { let configuration_file_name = zip.get_name_index(found_file_index); let stream = zip.get_stream(&configuration_file_name); - if stream.is_some() { - content = stream_get_contents(stream.unwrap()); + if let Some(stream) = &stream { + content = stream_get_contents(stream); } zip.close(); |
