diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-12-23 00:31:48 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-12-23 00:31:48 -0500 |
commit | c70e32b7d43282e0cb4b4d36ca4956bd5e1b9ed6 (patch) | |
tree | e7955e63447660e31485f81d15e769c76e3f7618 /lib | |
parent | c2883d8e6d3d4f85980e4e17390db917205fd039 (diff) |
config: fix typo, prevent it from happening again
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/config.rb b/lib/config.rb index 57e3b3f..944acc3 100644 --- a/lib/config.rb +++ b/lib/config.rb @@ -21,11 +21,7 @@ class Config return @default_license ||= @data['default_license'] end def license_uri(name) - str = @data['license_uris'][name] - if str.nil? - return nil - end - return URI::parse(str) + return URI::parse(@data['license_uris'][name]) end # People def default_author |