remove unused condition
This commit is contained in:
parent
4bab257970
commit
3b8fc97861
@ -8,22 +8,12 @@ module Validators
|
||||
include BootstrapTemplatesCommands
|
||||
|
||||
def valid?
|
||||
if @model.bootstrap_template
|
||||
available_templates.include?(@model.bootstrap_template)
|
||||
else
|
||||
true
|
||||
end
|
||||
get_templates.include?(@model.bootstrap_template)
|
||||
end
|
||||
|
||||
def message
|
||||
"Invalid bootstrap template '#{@model.bootstrap_template}' for image '#{@model.id}'"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def available_templates
|
||||
get_templates
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user