summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/stylesheet
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/stylesheet
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/stylesheet')
-rw-r--r--lib/axlsx/stylesheet/font.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/stylesheet/font.rb b/lib/axlsx/stylesheet/font.rb
index 8b183b6e..2d9647af 100644
--- a/lib/axlsx/stylesheet/font.rb
+++ b/lib/axlsx/stylesheet/font.rb
@@ -124,8 +124,8 @@ module Axlsx
# @see u
def u=(v)
- v = :single if (v == true || v == 1 || v == :true || v == 'true')
- v = :none if (v == false || v == 0 || v == :false || v == 'false')
+ v = :single if v == true || v == 1 || v == :true || v == 'true'
+ v = :none if v == false || v == 0 || v == :false || v == 'false'
Axlsx::validate_cell_u v
@u = v
end