summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/package.rb
diff options
context:
space:
mode:
authorZsolt Kozaroczy <[email protected]>2023-05-22 10:33:45 +0200
committerGitHub <[email protected]>2023-05-22 10:33:45 +0200
commit0f812ee216076a4c713f6cadb0751bac45f6b9da (patch)
tree95549c3a1899db8791268a71d4a33f5b9ce7847f /lib/axlsx/package.rb
parent56ff466673b8aff9a6508e29ebfaf4ee21f5fae9 (diff)
parent611b57cdd44f3f5e91394c699ad98b7c05330a2e (diff)
downloadcaxlsx-0f812ee216076a4c713f6cadb0751bac45f6b9da.tar.gz
caxlsx-0f812ee216076a4c713f6cadb0751bac45f6b9da.zip
Merge pull request #242 from tagliala/chore/fix-minor-safe-offenses
Remove minor safe offenses
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 9eab87a6..e8276d7c 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)]