core: Fix go vet issues shown by Travis

This commit is contained in:
James Nugent 2016-05-10 16:00:28 -04:00
parent 0f5f73eae1
commit f1d0fc46aa
2 changed files with 1 additions and 2 deletions

View File

@ -377,7 +377,7 @@ func TestConfigValidate_varDefault(t *testing.T) {
func TestConfigValidate_varDefaultListType(t *testing.T) { func TestConfigValidate_varDefaultListType(t *testing.T) {
c := testConfig(t, "validate-var-default-list-type") c := testConfig(t, "validate-var-default-list-type")
if err := c.Validate(); err != nil { if err := c.Validate(); err != nil {
t.Fatal("should be valid: %s", err) t.Fatalf("should be valid: %s", err)
} }
} }

View File

@ -75,7 +75,6 @@ func (n *EvalTypeCheckVariable) Eval(ctx EvalContext) (interface{}, error) {
return nil, fmt.Errorf("variable %s%s should be type %s, got %T", return nil, fmt.Errorf("variable %s%s should be type %s, got %T",
name, modulePathDescription, declaredType.Printable(), proposedValue) name, modulePathDescription, declaredType.Printable(), proposedValue)
} }
continue
case config.VariableTypeMap: case config.VariableTypeMap:
switch proposedValue.(type) { switch proposedValue.(type) {
case map[string]interface{}: case map[string]interface{}: