CFINSPEC-95: Remove redundant code

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
Sonu Saha 2022-05-13 00:00:44 +05:30
parent 3b03d6eb70
commit e879ef89a5

View file

@ -155,9 +155,6 @@ module Inspec::Resources
if @opts[:filepath] if @opts[:filepath]
cert_purpose = fetch_purpose(@opts[:filepath]) cert_purpose = fetch_purpose(@opts[:filepath])
else else
f = File.open("temporary_certificate.pem", "w")
f.write(@cert.to_pem)
f.rewind
begin begin
f = File.open("temporary_certificate.pem", "w") f = File.open("temporary_certificate.pem", "w")
f.write(@cert.to_pem) f.write(@cert.to_pem)