Skip to content

Commit

Permalink
Update from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed May 21, 2019
1 parent afdcd70 commit 85758bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/y2network/interfaces_collection.rb
Expand Up @@ -65,7 +65,7 @@ def initialize(interfaces = [])
# @return [Interface,nil] Interface with the given name or nil if not found
def by_name(name)
interfaces.find do |iface|
iface_name = iface.name ? iface.name : iface.hwinfo.name
iface_name = iface.name || iface.hwinfo.name
iface_name == name
end
end
Expand Down

0 comments on commit 85758bd

Please sign in to comment.