diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-06-05 11:22:54 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-05 11:22:54 +0200 |
| commit | 8e496968872c18dbeb7df43435a43758d069ef2a (patch) | |
| tree | 0129c25512855d16be4e09a0f16a40a09765f8dc /lib/axlsx/util/zip_command.rb | |
| parent | d9857fee81eb57935848039c6548d81f3339d728 (diff) | |
| parent | 4195130bb4633bc667aeedd297dc56d7632a5810 (diff) | |
| download | caxlsx-8e496968872c18dbeb7df43435a43758d069ef2a.tar.gz caxlsx-8e496968872c18dbeb7df43435a43758d069ef2a.zip | |
Merge pull request #274 from tagliala/chore/fix-negated-if-offenses
Fix negated if offenses
Diffstat (limited to 'lib/axlsx/util/zip_command.rb')
| -rw-r--r-- | lib/axlsx/util/zip_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/util/zip_command.rb b/lib/axlsx/util/zip_command.rb index 44e06af5..77cc44c7 100644 --- a/lib/axlsx/util/zip_command.rb +++ b/lib/axlsx/util/zip_command.rb @@ -63,7 +63,7 @@ module Axlsx escaped_dir = Shellwords.shellescape(@dir) command = "cd #{escaped_dir} && #{@zip_command} #{output} #{inputs}" stdout_and_stderr, status = Open3.capture2e(command) - if !status.success? + unless status.success? raise ZipError, stdout_and_stderr end end |
