diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-05-24 09:28:36 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-24 09:28:36 +0200 |
| commit | 4437b909792909cfc677484d963c9af2bfa91edd (patch) | |
| tree | 1e4fd39a28cf7af2b4a641335aba2222e5cb118e /lib | |
| parent | 0fa9d7523bff020b92c2a548b493ad3fb05ebed9 (diff) | |
| parent | 1eb9c45c20f2b459ffdb562507e2b6793196dec9 (diff) | |
| download | caxlsx-4437b909792909cfc677484d963c9af2bfa91edd.tar.gz caxlsx-4437b909792909cfc677484d963c9af2bfa91edd.zip | |
Merge pull request #254 from tagliala/chore/performance-redundant-block-call
Fix Performance/RedundantBlockCall offense
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/axlsx/util/zip_command.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/util/zip_command.rb b/lib/axlsx/util/zip_command.rb index bc098a92..44e06af5 100644 --- a/lib/axlsx/util/zip_command.rb +++ b/lib/axlsx/util/zip_command.rb @@ -25,10 +25,10 @@ module Axlsx # Create a temporary directory for writing files to. # # The directory and its contents are removed at the end of the block. - def open(output, &block) + def open(output) Dir.mktmpdir do |dir| @dir = dir - block.call(self) + yield(self) write_file zip_parts(output) end |
