core: Fix go vet issues shown by Travis
This commit is contained in:
parent
0f5f73eae1
commit
f1d0fc46aa
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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{}:
|
||||
|
|
Loading…
Reference in New Issue