mirror of
https://github.com/inspec/inspec
synced 2024-11-22 12:43:07 +00:00
bugfix: only call rule blocks if they are given
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
6f4a1fc092
commit
aebed6cb55
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class VulcanoBaseRule
|
|||
@title = nil
|
||||
@desc = nil
|
||||
|
||||
self.instance_eval(&block)
|
||||
self.instance_eval(&block) if block_given?
|
||||
end
|
||||
|
||||
def id(v = nil)
|
||||
|
|
Loading…
Reference in a new issue