Commit 4bd7db07 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

go fmt

parent 82735652
......@@ -5,7 +5,7 @@ import (
"strings"
)
type artifact struct{
type artifact struct {
// A map of regions to AMI IDs.
amis map[string]string
}
......
......@@ -57,7 +57,7 @@ func ParseTemplate(data []byte) (t *Template, err error) {
for i, v := range rawTpl.Builders {
rawType, ok := v["type"]
if !ok {
errors = append(errors, fmt.Errorf("builder %d: missing 'type'", i + 1))
errors = append(errors, fmt.Errorf("builder %d: missing 'type'", i+1))
continue
}
......@@ -72,13 +72,13 @@ func ParseTemplate(data []byte) (t *Template, err error) {
// Attempt to convert the name/type to strings, but error if we can't
name, ok := rawName.(string)
if !ok {
errors = append(errors, fmt.Errorf("builder %d: name must be a string", i + 1))
errors = append(errors, fmt.Errorf("builder %d: name must be a string", i+1))
continue
}
typeName, ok := rawType.(string)
if !ok {
errors = append(errors, fmt.Errorf("builder %d: type must be a string", i + 1))
errors = append(errors, fmt.Errorf("builder %d: type must be a string", i+1))
continue
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment