Skip to content

Commit

Permalink
Rubocop fix: Style/PreferredHashMethods
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Apr 20, 2017
1 parent cb3bb30 commit 8eb7880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/DASDController.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ def Export
# Exporting active DASD only.
# (bnc#887407)
active_devices = @devices.select do |_nr, device|
device.has_key?("resource") &&
device["resource"].has_key?("io") &&
device.key?("resource") &&
device["resource"].key?("io") &&
!device["resource"]["io"].empty? &&
device["resource"]["io"].first["active"]
end
Expand Down

0 comments on commit 8eb7880

Please sign in to comment.