mirror of
https://github.com/inspec/inspec
synced 2024-11-14 17:07:09 +00:00
lint: dont use undefined vars
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
3ef8e93793
commit
285c83ba06
1 changed files with 3 additions and 3 deletions
|
@ -148,17 +148,17 @@ class User < Vulcano.resource(1)
|
|||
private
|
||||
|
||||
def identiy
|
||||
return @id_cache if !@id_cache.nil?
|
||||
return @id_cache if defined?(@id_cache)
|
||||
@id_cache = @user_provider.identity(@user) if !@user_provider.nil?
|
||||
end
|
||||
|
||||
def meta_info
|
||||
return @meta_cache if !@meta_cache.nil?
|
||||
return @meta_cache if defined?(@meta_cache)
|
||||
@meta_cache = @user_provider.meta_info(@user) if !@user_provider.nil?
|
||||
end
|
||||
|
||||
def credentials
|
||||
return @cred_cache if !@cred_cache.nil?
|
||||
return @cred_cache if defined?(@cred_cache)
|
||||
@cred_cache = @user_provider.credentials(@user) if !@user_provider.nil?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue