mirror of
https://github.com/inspec/inspec
synced 2025-02-16 14:08:36 +00:00
Fix linting error
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
This commit is contained in:
parent
8f995a3c8f
commit
1b546526c3
1 changed files with 1 additions and 1 deletions
|
@ -230,12 +230,12 @@ module Inspec
|
|||
def initialize(path)
|
||||
f = File.open(path, "rb")
|
||||
version = f.readline.strip!
|
||||
usage_text = f.readline.strip!
|
||||
if version == "INSPEC-PROFILE-1"
|
||||
while f.readline != "\n" do end
|
||||
content = f.read
|
||||
f.close
|
||||
elsif version == "INSPEC-PROFILE-2"
|
||||
f.readline.strip!
|
||||
content = f.read
|
||||
f.close
|
||||
content = content.slice(490, content.length).lstrip
|
||||
|
|
Loading…
Add table
Reference in a new issue