Skip to content

Commit 0bb797f

Browse files
committed
Address Rubocop Style/TernaryParentheses cop
1 parent 7c9dd25 commit 0bb797f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/puppet/provider/zpool/zpool.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def process_zpool_data(pool_array)
5353
end
5454

5555
if sym
56-
pool[sym] = (pool[sym]) ? pool[sym].unshift(tmp.reverse.join(' ')) : [tmp.reverse.join(' ')]
56+
pool[sym] = pool[sym] ? pool[sym].unshift(tmp.reverse.join(' ')) : [tmp.reverse.join(' ')]
5757
tmp.clear
5858
end
5959
end
@@ -99,7 +99,7 @@ def build_named(name)
9999

100100
# query for parity and set the right string
101101
def raidzarity
102-
(@resource[:raid_parity]) ? @resource[:raid_parity] : 'raidz1'
102+
@resource[:raid_parity] ? @resource[:raid_parity] : 'raidz1'
103103
end
104104

105105
# handle mirror or raid

0 commit comments

Comments
 (0)