Skip to content

Commit

Permalink
Rubocop fix: Style/SpaceAroundBlockParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Apr 20, 2017
1 parent ead74c2 commit 7a94474
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/include/s390/dasd/dialogs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def PerformAction(action)
end
# for autoinst, format unformatted disks later
if (! Mode.autoinst) && Popup.ContinueCancel(popup)
devices = unformatted_disks.map do | channel |
devices = unformatted_disks.map do |channel|
device = nil
cmd = "ls '/sys/bus/ccw/devices/#{channel}/block/' | tr -d '\n'"
disk = SCR.Execute(path(".target.bash_output"), cmd)
Expand All @@ -262,9 +262,9 @@ def PerformAction(action)
end
device
end
devices.reject! { | d | d.nil? }
devices.reject! { |d| d.nil? }
DASDController.FormatDisks(devices, 8) # don't format more than 8 disks in parallel
unformatted_disks.each do | channel |
unformatted_disks.each do |channel|
diag = !!DASDController.diag[channel]
DASDController.ActivateDisk(channel, diag)
end
Expand Down Expand Up @@ -529,7 +529,7 @@ def DASDDialog
if ret == :select_all

UI.ChangeWidget(Id(:table), :SelectedItems,
UI.QueryWidget(Id(:table), :Items).map { | item | item[0][0] })
UI.QueryWidget(Id(:table), :Items).map { |item| item[0][0] })
ret = nil
elsif ret == :deselect_all
UI.ChangeWidget(Id(:table), :SelectedItems, [])
Expand Down
4 changes: 2 additions & 2 deletions src/modules/DASDController.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def Write
message = Builtins.sformat(_("There are %1 unformatted devices. Format them now?"), unformatted_devices.size)
end
if Popup.ContinueCancel( message )
unformatted_devices.each do | device |
unformatted_devices.each do |device|
to_format << device
to_reactivate << device
end
Expand All @@ -163,7 +163,7 @@ def Write

FormatDisks(to_format, 8) if !Builtins.isempty(to_format)

to_reactivate.each do | device |
to_reactivate.each do |device|
channel = device["channel"] || ""
do_diag = device["diag"] || false
# FIXME: general activation error handling - also in sync with above
Expand Down

0 comments on commit 7a94474

Please sign in to comment.