diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-05-22 10:37:23 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-22 10:37:23 +0200 |
| commit | 6ae97de9c2bb45631d4d3de9ba890510e70623fb (patch) | |
| tree | 56f3aa9e13ef10a1e0bef3577a9e0593d315a4ed | |
| parent | 5024da7177a6a160d118b90641801bd263493fdf (diff) | |
| parent | 4eddfe68246884141f55a68fa45a4c83bb532e82 (diff) | |
| download | caxlsx-6ae97de9c2bb45631d4d3de9ba890510e70623fb.tar.gz caxlsx-6ae97de9c2bb45631d4d3de9ba890510e70623fb.zip | |
Merge pull request #246 from tagliala/chore/fix-useless-assignment-offenses
Fix Lint/UselessAssignment offenses
| -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 |
