Fix last remaining style issues
This commit is contained in:
parent
7f398d01b8
commit
eaae7f3a5b
@ -57,10 +57,9 @@ module Hbc
|
|||||||
add_warning "only a single preflight stanza is allowed"
|
add_warning "only a single preflight stanza is allowed"
|
||||||
end
|
end
|
||||||
|
|
||||||
if cask.artifacts.count { |k| k.is_a?(Hbc::Artifact::PostflightBlock) && k.directives.key?(:postflight) } > 1
|
return unless cask.artifacts.count { |k| k.is_a?(Hbc::Artifact::PostflightBlock) && k.directives.key?(:postflight) } > 1
|
||||||
add_warning "only a single postflight stanza is allowed"
|
add_warning "only a single postflight stanza is allowed"
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def check_single_uninstall_zap
|
def check_single_uninstall_zap
|
||||||
odebug "Auditing single uninstall_* and zap stanzas"
|
odebug "Auditing single uninstall_* and zap stanzas"
|
||||||
@ -77,10 +76,9 @@ module Hbc
|
|||||||
add_warning "only a single uninstall_postflight stanza is allowed"
|
add_warning "only a single uninstall_postflight stanza is allowed"
|
||||||
end
|
end
|
||||||
|
|
||||||
if cask.artifacts.count { |k| k.is_a?(Hbc::Artifact::Zap) } > 1
|
return unless cask.artifacts.count { |k| k.is_a?(Hbc::Artifact::Zap) } > 1
|
||||||
add_warning "only a single zap stanza is allowed"
|
add_warning "only a single zap stanza is allowed"
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def check_required_stanzas
|
def check_required_stanzas
|
||||||
odebug "Auditing required stanzas"
|
odebug "Auditing required stanzas"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user