Skip to content

Commit

Permalink
core: Don't compare types on vars with no default
Browse files Browse the repository at this point in the history
  • Loading branch information
jen20 committed Jan 22, 2016
1 parent fd1eb91 commit 09dc9db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ func (v *Variable) Type() VariableType {
// ValidateDefault ensures that default variable value is compatible
// with the declared type (if one exists)
func (v *Variable) ValidateDefault() error {
if v.DeclaredType == "" {
if v.DeclaredType == "" || v.Default == nil {
return nil
}

Expand Down

0 comments on commit 09dc9db

Please sign in to comment.