mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
gofmt to make check happy
This commit is contained in:
@@ -440,7 +440,7 @@ func parseClient(result **ClientConfig, list *ast.ObjectList) error {
|
||||
}
|
||||
|
||||
validKeyRe, _ := regexp.Compile(`^[^.]+(\.[^.]+)*$`)
|
||||
for k, _ := range config.Meta {
|
||||
for k := range config.Meta {
|
||||
if !validKeyRe.MatchString(k) {
|
||||
return fmt.Errorf("invalid Client.Meta key: %v", k)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user