summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/worksheet/sheet_protection.rb
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-05-03 18:45:30 +0200
committerGeremia Taglialatela <[email protected]>2023-05-03 18:45:30 +0200
commit6a61caa26ef8e8fbe3a88ecd9341976e5a177db5 (patch)
tree076ea47e1644fe37909d2438d9dc3c97ca50ef5c /lib/axlsx/workbook/worksheet/sheet_protection.rb
parentaaf88bd98054b1823ba0ade4b883b84e41b5e947 (diff)
downloadcaxlsx-6a61caa26ef8e8fbe3a88ecd9341976e5a177db5.tar.gz
caxlsx-6a61caa26ef8e8fbe3a88ecd9341976e5a177db5.zip
Fix safe, minor offenses to production code
- Lint/RedundantStringCoercion - Style/CommentAnnotation offenses - Style/DefWithParentheses - Style/EvalWithLocation - Style/MethodCallWithoutArgsParentheses - Style/MethodDefParentheses - Style/NilComparison - Style/Semicolon
Diffstat (limited to 'lib/axlsx/workbook/worksheet/sheet_protection.rb')
-rw-r--r--lib/axlsx/workbook/worksheet/sheet_protection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/sheet_protection.rb b/lib/axlsx/workbook/worksheet/sheet_protection.rb
index 7433d5bb..42d74695 100644
--- a/lib/axlsx/workbook/worksheet/sheet_protection.rb
+++ b/lib/axlsx/workbook/worksheet/sheet_protection.rb
@@ -65,7 +65,7 @@ module Axlsx
# encodes password for protection locking
def password=(v)
- return if v == nil
+ return if v.nil?
@password = create_password_hash(v)
end