Skip to content

Commit

Permalink
simplify code using #probed_disk_analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
wfeldt committed May 17, 2017
1 parent f99c932 commit 5c19b77
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions timezone/src/modules/Timezone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1075,10 +1075,7 @@ def product_default_timezone
protected

def disk_analyzer
@disk_analyzer ||= begin
devicegraph = Y2Storage::StorageManager.instance.y2storage_probed
Y2Storage::DiskAnalyzer.new(devicegraph)
end
devicegraph = Y2Storage::StorageManager.instance.probed_disk_analyzer
end
end

Expand Down

0 comments on commit 5c19b77

Please sign in to comment.