diff options
| author | Geremia Taglialatela <[email protected]> | 2023-05-21 14:35:45 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-05-21 14:35:45 +0200 |
| commit | 4eddfe68246884141f55a68fa45a4c83bb532e82 (patch) | |
| tree | 8bf91b1844f273836f70737f54377e577440af79 /lib | |
| parent | 6a4b82def2e94b4811c38c37e606d426710d1e6c (diff) | |
| download | caxlsx-4eddfe68246884141f55a68fa45a4c83bb532e82.tar.gz caxlsx-4eddfe68246884141f55a68fa45a4c83bb532e82.zip | |
Fix Lint/UselessAssignment offenses
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/axlsx/workbook/worksheet/header_footer.rb | 2 | ||||
| -rw-r--r-- | lib/axlsx/workbook/worksheet/sheet_protection.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/workbook/worksheet/header_footer.rb b/lib/axlsx/workbook/worksheet/header_footer.rb index c60d6678..0b86212d 100644 --- a/lib/axlsx/workbook/worksheet/header_footer.rb +++ b/lib/axlsx/workbook/worksheet/header_footer.rb @@ -45,7 +45,7 @@ module Axlsx def to_xml_string(str = +'') serialized_tag('headerFooter', str) do serialized_element_attributes(str) do |value| - value = ::CGI.escapeHTML(value) + ::CGI.escapeHTML(value) end end end diff --git a/lib/axlsx/workbook/worksheet/sheet_protection.rb b/lib/axlsx/workbook/worksheet/sheet_protection.rb index e506f8d9..ce39b1b4 100644 --- a/lib/axlsx/workbook/worksheet/sheet_protection.rb +++ b/lib/axlsx/workbook/worksheet/sheet_protection.rb @@ -107,7 +107,7 @@ module Axlsx low_15 = char & 0x7fff high_15 = char & 0x7fff << 15 high_15 = high_15 >> 15 - char = low_15 | high_15 + low_15 | high_15 end encoded_password = 0x0000 |
