summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/package.rb
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-05-20 17:52:35 +0200
committerGeremia Taglialatela <[email protected]>2023-05-20 17:52:35 +0200
commit611b57cdd44f3f5e91394c699ad98b7c05330a2e (patch)
tree3ac799c34fdc418ae31145feb1edf9d363b1d69a /lib/axlsx/package.rb
parent6a4b82def2e94b4811c38c37e606d426710d1e6c (diff)
downloadcaxlsx-611b57cdd44f3f5e91394c699ad98b7c05330a2e.tar.gz
caxlsx-611b57cdd44f3f5e91394c699ad98b7c05330a2e.zip
Remove minor safe offenses
- Style/RaiseArgs - Style/RedundantCondition - Style/RedundantReturn - Style/SelfAssignment - Style/SoleNestedConditional
Diffstat (limited to 'lib/axlsx/package.rb')
-rw-r--r--lib/axlsx/package.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/package.rb b/lib/axlsx/package.rb
index b4116f76..7aa80b73 100644
--- a/lib/axlsx/package.rb
+++ b/lib/axlsx/package.rb
@@ -145,7 +145,7 @@ module Axlsx
# Encrypt the package into a CFB using the password provided
# This is not ready yet
def encrypt(file_name, password)
- return false
+ false
# moc = MsOffCrypto.new(file_name, password)
# moc.save
end
@@ -386,7 +386,7 @@ module Axlsx
options.merge!(secondary_options || {})
invalid_keys = options.keys - [:confirm_valid, :zip_command]
if invalid_keys.any?
- raise ArgumentError.new("Invalid keyword arguments: #{invalid_keys}")
+ raise ArgumentError, "Invalid keyword arguments: #{invalid_keys}"
end
[options.fetch(:confirm_valid, false), options.fetch(:zip_command, nil)]