Skip to content

Commit

Permalink
prevent warning that nil is assigned to libyui
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 7, 2019
1 parent 5bc36a3 commit a130961
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/y2firewall/widgets/zone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def initialize(zone, disabled: false, existing_names: [])
end

def init
self.value = @zone.name
self.value = @zone.name || ""
@disabled ? disable : enable
end

Expand Down Expand Up @@ -78,7 +78,7 @@ def initialize(zone)
end

def init
self.value = @zone.short
self.value = @zone.short || ""
end

def label
Expand Down Expand Up @@ -115,7 +115,7 @@ def initialize(zone)
end

def init
self.value = @zone.description
self.value = @zone.description || ""
end

def label
Expand Down

0 comments on commit a130961

Please sign in to comment.