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 Apr 6, 2018
1 parent 87b0c89 commit 25f25ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/registration/ui/addon_eula_dialog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ def display_optional_info(info_file)

def find_license(addon, eula_reader)
license_file = eula_reader.licenses[Y2Packager::License::DEFAULT_LANG]
return false unless license_file
return nil unless license_file
content = Yast::SCR.Read(path(".target.string"), license_file)
return false unless content
return nil unless content

Y2Packager::ProductLicense.find(addon.identifier, content: content)
end
Expand Down

0 comments on commit 25f25ed

Please sign in to comment.