diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-07-07 15:19:21 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-07-07 15:19:21 -0700 |
commit | 1485a862053fb20ade1f93bb82c6918cd4078975 (patch) | |
tree | 21ae9d81524f56a4b52449424550259422b1b9a5 /lib/chef/mixin | |
parent | 3e9e6d41a31bd1ac932f7f4100102466b4fdfe05 (diff) | |
download | chef-1485a862053fb20ade1f93bb82c6918cd4078975.tar.gz |
Avoid assigning variables before returning if we don't have to
These seemed pretty straight forward. There's a new Rubocop cop for these.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/mixin')
-rw-r--r-- | lib/chef/mixin/openssl_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/mixin/openssl_helper.rb b/lib/chef/mixin/openssl_helper.rb index a30ccb5f69..1321bccfee 100644 --- a/lib/chef/mixin/openssl_helper.rb +++ b/lib/chef/mixin/openssl_helper.rb @@ -369,8 +369,7 @@ class Chef revoked.add_extension(ext) crl.add_revoked(revoked) - crl = renew_x509_crl(crl, ca_private_key, info) - crl + renew_x509_crl(crl, ca_private_key, info) end # renew a X509 crl given |