mirror of
https://github.com/inspec/inspec
synced 2024-11-22 20:53:11 +00:00
CFINSPEC-95: Remove redundant code
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
parent
3b03d6eb70
commit
e879ef89a5
1 changed files with 0 additions and 3 deletions
|
@ -155,9 +155,6 @@ module Inspec::Resources
|
|||
if @opts[:filepath]
|
||||
cert_purpose = fetch_purpose(@opts[:filepath])
|
||||
else
|
||||
f = File.open("temporary_certificate.pem", "w")
|
||||
f.write(@cert.to_pem)
|
||||
f.rewind
|
||||
begin
|
||||
f = File.open("temporary_certificate.pem", "w")
|
||||
f.write(@cert.to_pem)
|
||||
|
|
Loading…
Reference in a new issue