Skip to content

Commit

Permalink
Pass lint
Browse files Browse the repository at this point in the history
  • Loading branch information
manegron committed Dec 9, 2024
1 parent a345b80 commit 0ab00f1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions resources/providers/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,9 @@
end

if sensor_role
sensor_id = node["redborder"]["sensor_id"]
if sensor_id.nil?
sensor_id = 0
else
sensor_id = sensor_id.to_i
end

sensor_id = node['redborder']['sensor_id']
sensor_id = sensor_id.nil? ? 0 : sensor_id.to_i

template '/etc/rb-id' do
source 'variable.erb'
cookbook 'rb-common'
Expand Down

0 comments on commit 0ab00f1

Please sign in to comment.