Skip to content

Commit

Permalink
Error handle for nil class
Browse files Browse the repository at this point in the history
Summary: ```

Differential Revision: D61513557

fbshipit-source-id: c5cba2c8293eb44debc67e7b76b5396c9836c923
  • Loading branch information
Greg Batye authored and facebook-github-bot committed Aug 20, 2024
1 parent b6a6c50 commit 5c45839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion itchef/cookbooks/cpe_remote/libraries/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def gen_url(path, file)
url = CPE::Distro.gen_url_from_api(path, file)
end
Chef::Log.info("Source URL: #{url}")
if url.include?('cpespace.thefacebook.com')
if url.to_s.include?('cpespace.thefacebook.com')
Chef::Log.warn(
'[cpe_remote] cpespace.thefacebook.com is being deprecated. Use another source instead',

Expand Down

0 comments on commit 5c45839

Please sign in to comment.