summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-05-21 14:35:45 +0200
committerGeremia Taglialatela <[email protected]>2023-05-21 14:35:45 +0200
commit4eddfe68246884141f55a68fa45a4c83bb532e82 (patch)
tree8bf91b1844f273836f70737f54377e577440af79 /lib
parent6a4b82def2e94b4811c38c37e606d426710d1e6c (diff)
downloadcaxlsx-4eddfe68246884141f55a68fa45a4c83bb532e82.tar.gz
caxlsx-4eddfe68246884141f55a68fa45a4c83bb532e82.zip
Fix Lint/UselessAssignment offenses
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx/workbook/worksheet/header_footer.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/sheet_protection.rb2
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