diff options
| author | Geremia Taglialatela <[email protected]> | 2023-06-15 09:30:29 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-06-15 09:30:29 +0200 |
| commit | 988c79b8d7602c67f7b761269383129609cf63a7 (patch) | |
| tree | 036d742dc625ea43028326d869a06e35ef9952b1 /lib/axlsx/util/storage.rb | |
| parent | e74c75b95d39fb51512387031e79f50e52a5874a (diff) | |
| download | caxlsx-988c79b8d7602c67f7b761269383129609cf63a7.tar.gz caxlsx-988c79b8d7602c67f7b761269383129609cf63a7.zip | |
Fix redundant self offenses
No performance gain, this can be seen as a cosmetic change to have
shorter lines
Diffstat (limited to 'lib/axlsx/util/storage.rb')
| -rw-r--r-- | lib/axlsx/util/storage.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/util/storage.rb b/lib/axlsx/util/storage.rb index b9b84a37..ac5e9ebc 100644 --- a/lib/axlsx/util/storage.rb +++ b/lib/axlsx/util/storage.rb @@ -133,7 +133,7 @@ module Axlsx @left = @right = @child = -1 @sector = @size = @created = @modified = 0 options.each do |o| - self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" + send("#{o[0]}=", o[1]) if respond_to? "#{o[0]}=" end @color ||= COLORS[:black] @type ||= (data.nil? ? TYPES[:storage] : TYPES[:stream]) |
