Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Jun 26, 2017
1 parent 3d8d1c3 commit 648e452
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/modules/Kdump.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1145,11 +1145,7 @@ def crash_kernel_values
# modification.
# The old value (ensuring the Array format) will be returned.
if @crashkernel_list_ranges
if @crashkernel_param_values.is_a? Symbol
return Array(@crashkernel_param_values.to_s.dup)
else
return Array(@crashkernel_param_values.dup)
end
return Array(@crashkernel_param_values.to_s.dup)
end

result = []
Expand Down Expand Up @@ -1177,11 +1173,7 @@ def crash_xen_kernel_values
# modification.
# The old value (ensuring the Array format) will be returned.
if @crashkernel_list_ranges
if @crashkernel_xen_param_values.is_a? Symbol
return Array(@crashkernel_xen_param_values.to_s.dup)
else
return Array(@crashkernel_xen_param_values.dup)
end
return Array(@crashkernel_xen_param_values.to_s.dup)
end

result = []
Expand Down

0 comments on commit 648e452

Please sign in to comment.