diff options
author | Tim Smith <tsmith@chef.io> | 2017-10-14 21:20:22 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-02-26 12:22:02 -0800 |
commit | 08a3b84d3c6be94d7a0c0a1693766c2c631c6ea5 (patch) | |
tree | b13a882c9cb01f22f1ab442b469808e8381fc15e | |
parent | 35a3a95499c2541fb88566f0452b899718071cf7 (diff) | |
download | chef-08a3b84d3c6be94d7a0c0a1693766c2c631c6ea5.tar.gz |
Don't check that we're a PPA URL twice
We check that we're a PPA URL before calling the method. No need to check again within the method.
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/provider/apt_repository.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/chef/provider/apt_repository.rb b/lib/chef/provider/apt_repository.rb index 0febbfba05..61c3e7cf2a 100644 --- a/lib/chef/provider/apt_repository.rb +++ b/lib/chef/provider/apt_repository.rb @@ -283,7 +283,6 @@ class Chef end def make_ppa_url(ppa) - return unless is_ppa_url?(ppa) owner, repo = ppa[4..-1].split("/") repo ||= "ppa" |