helper/variables: address go vet

This commit is contained in:
Mitchell Hashimoto 2016-12-10 20:32:50 -05:00
parent da418b2582
commit 42edd22566
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 3 additions and 3 deletions

View File

@ -59,14 +59,14 @@ func ParseInput(value string) (interface{}, error) {
} }
return nil, fmt.Errorf( return nil, fmt.Errorf(
"Cannot parse value for variable %s (%q) as valid HCL: %s", "Cannot parse value for variable (%q) as valid HCL: %s",
value, err) value, err)
} }
var decoded map[string]interface{} var decoded map[string]interface{}
if hcl.DecodeObject(&decoded, parsed); err != nil { if hcl.DecodeObject(&decoded, parsed); err != nil {
return nil, fmt.Errorf( return nil, fmt.Errorf(
"Cannot parse value for variable %s (%q) as valid HCL: %s", "Cannot parse value for variable (%q) as valid HCL: %s",
value, err) value, err)
} }
@ -77,7 +77,7 @@ func ParseInput(value string) (interface{}, error) {
if len(decoded) > 1 { if len(decoded) > 1 {
return nil, fmt.Errorf( return nil, fmt.Errorf(
"Cannot parse value for variable %s (%q) as valid HCL. "+ "Cannot parse value for variable (%q) as valid HCL. "+
"Only one value may be specified.", "Only one value may be specified.",
value) value)
} }