summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/package.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/package.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/package.rb')
-rw-r--r--lib/axlsx/package.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/axlsx/package.rb b/lib/axlsx/package.rb
index b61c3de1..f22ad2ac 100644
--- a/lib/axlsx/package.rb
+++ b/lib/axlsx/package.rb
@@ -31,7 +31,7 @@ module Axlsx
# Shortcut to specify that the workbook should use autowidth
# @see Workbook#use_autowidth
def use_autowidth=(v)
- Axlsx::validate_boolean(v);
+ Axlsx::validate_boolean(v)
workbook.use_autowidth = v
end
@@ -44,7 +44,7 @@ module Axlsx
# Shortcut to specify that the workbook should use shared strings
# @see Workbook#use_shared_strings
def use_shared_strings=(v)
- Axlsx::validate_boolean(v);
+ Axlsx::validate_boolean(v)
workbook.use_shared_strings = v
end
@@ -347,7 +347,7 @@ module Axlsx
# @return [ContentType]
# @private
def base_content_types
- c_types = ContentType.new()
+ c_types = ContentType.new
c_types << Default.new(:ContentType => RELS_CT, :Extension => RELS_EX)
c_types << Default.new(:Extension => XML_EX, :ContentType => XML_CT)
c_types << Override.new(:PartName => "/#{APP_PN}", :ContentType => APP_CT)