mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
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: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
@@ -58,6 +58,8 @@ var Owners = []string{`
|
|||||||
}
|
}
|
||||||
golist += fmt.Sprintf("%q%s", a, c)
|
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 {
|
if err := ioutil.WriteFile("plugin/chaos/zowners.go", []byte(golist), 0644); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package chaos
|
package chaos
|
||||||
|
|
||||||
// Owners are all GitHub handlers of all maintainers.
|
// Owners are all GitHub handlers of all maintainers.
|
||||||
var Owners = []string{"bradbeam", "chrisohaver", "dilyevsky", "ekleiner", "fastest963", "greenpau", "grobie", "inigohu", "isolus", "johnbelamaric", "miekg", "nchrisdk", "nitisht", "pmoroney", "rajansandeep", "rdrozhdzh", "rtreffer", "stp-ip", "superq", "varyoo", "yongtang"}
|
var Owners = []string{"bradbeam", "chrisohaver", "dilyevsky", "ekleiner", "fastest963", "greenpau", "grobie", "inigohu", "isolus", "johnbelamaric", "miekg", "nchrisdk", "nitisht", "pmoroney", "rajansandeep", "rdrozhdzh", "rtreffer", "stp-ip", "superq", "varyoo", "yongtang"}
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
mwtls "github.com/coredns/coredns/plugin/pkg/tls"
|
mwtls "github.com/coredns/coredns/plugin/pkg/tls"
|
||||||
"github.com/coredns/coredns/plugin/pkg/upstream"
|
"github.com/coredns/coredns/plugin/pkg/upstream"
|
||||||
|
|
||||||
etcdcv3 "github.com/coreos/etcd/clientv3"
|
|
||||||
"github.com/caddyserver/caddy"
|
"github.com/caddyserver/caddy"
|
||||||
|
etcdcv3 "github.com/coreos/etcd/clientv3"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = clog.NewWithPlugin("etcd")
|
var log = clog.NewWithPlugin("etcd")
|
||||||
|
|||||||
Reference in New Issue
Block a user