summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/drawing/scatter_series.rb
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-05-31 17:31:59 +0200
committerGeremia Taglialatela <[email protected]>2023-05-31 17:31:59 +0200
commit4e555613a021639c12be713c438bb124622c72d3 (patch)
treee629fb11f494e85fa1e6205792111b83474d45d9 /lib/axlsx/drawing/scatter_series.rb
parentad87c51bf8c8f59a36514bb95dc6d3a582c6b2fd (diff)
downloadcaxlsx-4e555613a021639c12be713c438bb124622c72d3.tar.gz
caxlsx-4e555613a021639c12be713c438bb124622c72d3.zip
Remove redundant parentheses
- Style/ParenthesesAroundCondition - Style/RedundantParentheses - Style/TernaryParentheses `Style/ParenthesesAroundCondition` may be questionable, but a majority of comparison where not using parentheses, so offenses have been fixed for uniformity across the codebase
Diffstat (limited to 'lib/axlsx/drawing/scatter_series.rb')
-rw-r--r--lib/axlsx/drawing/scatter_series.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/drawing/scatter_series.rb b/lib/axlsx/drawing/scatter_series.rb
index 2838c3de..a287a112 100644
--- a/lib/axlsx/drawing/scatter_series.rb
+++ b/lib/axlsx/drawing/scatter_series.rb
@@ -110,7 +110,7 @@ module Axlsx
end
@xData.to_xml_string(str) unless @xData.nil?
@yData.to_xml_string(str) unless @yData.nil?
- str << '<c:smooth val="' << ((smooth) ? '1' : '0') << '"/>'
+ str << '<c:smooth val="' << (smooth ? '1' : '0') << '"/>'
end
str
end