Skip to content

Commit

Permalink
Avoid the legacy module TypeRepository
Browse files Browse the repository at this point in the history
one more overloaded "type" removed
  • Loading branch information
mvidner committed Dec 4, 2017
1 parent 2cfa941 commit 6f2e823
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/network/src/modules/NetworkInterfaces.rb
Expand Up @@ -64,7 +64,6 @@ def main
Yast.import "Map"
Yast.import "Mode"
Yast.import "Netmask"
Yast.import "TypeRepository"
Yast.import "FileUtils"
Yast.import "IP"

Expand Down Expand Up @@ -181,8 +180,7 @@ def main
end

def IsEmpty(value)
value = deep_copy(value)
TypeRepository.IsEmpty(value)
value.nil? ? true : value.empty?
end

def ifcfg_part(ifcfg, part)
Expand Down

0 comments on commit 6f2e823

Please sign in to comment.