mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +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]
|
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)
|
||||||
|
|
Loading…
Reference in a new issue