diff options
author | Julien Huon <julien@huon.email> | 2019-12-25 22:29:53 +0100 |
---|---|---|
committer | Julien Huon <julien@huon.email> | 2019-12-25 22:29:53 +0100 |
commit | 0e58820b5b2b537ab22b3efe7841ac301b9534d3 (patch) | |
tree | 3ab9d7b0d028ca2343e1a4eef75dd178090b29f3 /lib/chef/mixin | |
parent | 43dc9ca5f4ff2daca950f42cfd7f2e16b5e8552c (diff) | |
download | chef-0e58820b5b2b537ab22b3efe7841ac301b9534d3.tar.gz |
Removed useless check
Signed-off-by: Julien Huon <julien@huon.email>
Diffstat (limited to 'lib/chef/mixin')
-rw-r--r-- | lib/chef/mixin/openssl_helper.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/chef/mixin/openssl_helper.rb b/lib/chef/mixin/openssl_helper.rb index 7820635e37..a9201d8637 100644 --- a/lib/chef/mixin/openssl_helper.rb +++ b/lib/chef/mixin/openssl_helper.rb @@ -408,9 +408,6 @@ class Chef # @param [integer] renew_before_expiry number of days before expiration # @return [true, false] def cert_need_renewall?(cert_file, renew_before_expiry) - raise TypeError, "cert_file must be a String object" unless cert_file.is_a?(String) - raise TypeError, "renew_before_expiry must be a Integer object" unless renew_before_expiry.is_a?(Integer) - resp = true cert_content = ::File.exist?(cert_file) ? File.read(cert_file) : cert_file begin |