aboutsummaryrefslogtreecommitdiff
path: root/middleware/file/zone.go
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com> 2017-08-04 09:46:40 -0700
committerGravatar Miek Gieben <miek@miek.nl> 2017-08-04 09:46:40 -0700
commit7ca018374f7c2249fe2ab89f2840dd6154a5cf71 (patch)
treebd84b656df8e9e132c2f22cb5ceaf97a3ab611c4 /middleware/file/zone.go
parentc08497adeea1eb03b84e11c25e6e1b0b41348a7c (diff)
downloadcoredns-7ca018374f7c2249fe2ab89f2840dd6154a5cf71.tar.gz
coredns-7ca018374f7c2249fe2ab89f2840dd6154a5cf71.tar.zst
coredns-7ca018374f7c2249fe2ab89f2840dd6154a5cf71.zip
golint cleanup (#828)
Clean up some golint related issues. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'middleware/file/zone.go')
-rw-r--r--middleware/file/zone.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/middleware/file/zone.go b/middleware/file/zone.go
index a216f8af8..3f3bcf0f7 100644
--- a/middleware/file/zone.go
+++ b/middleware/file/zone.go
@@ -56,6 +56,7 @@ func NewZone(name, file string) *Zone {
return z
}
+// Copy copies a zone.
func (z *Zone) Copy() *Zone {
z1 := NewZone(z.origin, z.file)
z1.TransferTo = z.TransferTo