From f1d0fc46aae0399ac8f0272be320c1cbcc2643d8 Mon Sep 17 00:00:00 2001 From: James Nugent Date: Tue, 10 May 2016 16:00:28 -0400 Subject: [PATCH] core: Fix go vet issues shown by Travis --- config/config_test.go | 2 +- terraform/eval_variable.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config/config_test.go b/config/config_test.go index 2ab314f350..5186a81de6 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -377,7 +377,7 @@ func TestConfigValidate_varDefault(t *testing.T) { func TestConfigValidate_varDefaultListType(t *testing.T) { c := testConfig(t, "validate-var-default-list-type") if err := c.Validate(); err != nil { - t.Fatal("should be valid: %s", err) + t.Fatalf("should be valid: %s", err) } } diff --git a/terraform/eval_variable.go b/terraform/eval_variable.go index 40e953d7c2..114f8eaa00 100644 --- a/terraform/eval_variable.go +++ b/terraform/eval_variable.go @@ -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", name, modulePathDescription, declaredType.Printable(), proposedValue) } - continue case config.VariableTypeMap: switch proposedValue.(type) { case map[string]interface{}: