Skip to content

Commit

Permalink
Fix Style/TernaryParentheses cop
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver committed Jan 16, 2024
1 parent 351bab4 commit 7767160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/discovered_hosts_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def multiple_discovered_hosts_actions_select
end

def turn_zero_to_not_available(value)
value == 0 ? 'N/A' : value
(value == 0) ? 'N/A' : value
end

def discovery_attribute(host, attr, default_value = _('N/A'))
Expand Down

0 comments on commit 7767160

Please sign in to comment.