Commit f4a6bea4 authored by Yong Tang's avatar Yong Tang Committed by Miek Gieben

gofmt fix for `No newline at end of file` (#2973)

This fix fixes the `\ No newline at end of file`
in plugin/chaos/zowners.go, by adding `"\n"`
to the end of owners_generate.go.

Also fixes a gofmt issue in plugin/etcd/setup.go
Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent 9b6e2aa5
......@@ -58,6 +58,8 @@ var Owners = []string{`
}
golist += fmt.Sprintf("%q%s", a, c)
}
// to prevent `No newline at end of file` with gofmt
golist += "\n"
if err := ioutil.WriteFile("plugin/chaos/zowners.go", []byte(golist), 0644); err != nil {
log.Fatal(err)
......
......@@ -9,8 +9,8 @@ import (
mwtls "github.com/coredns/coredns/plugin/pkg/tls"
"github.com/coredns/coredns/plugin/pkg/upstream"
etcdcv3 "github.com/coreos/etcd/clientv3"
"github.com/caddyserver/caddy"
etcdcv3 "github.com/coreos/etcd/clientv3"
)
var log = clog.NewWithPlugin("etcd")
......
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