From 4eddfe68246884141f55a68fa45a4c83bb532e82 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sun, 21 May 2023 14:35:45 +0200 Subject: Fix Lint/UselessAssignment offenses --- lib/axlsx/workbook/worksheet/header_footer.rb | 2 +- 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 -- cgit v1.2.3