diff options
author | 2018-07-28 17:32:13 +0800 | |
---|---|---|
committer | 2018-07-28 10:32:13 +0100 | |
commit | 54ec78c1ba918b98ac9b9c5b1334c9d170502119 (patch) | |
tree | 65c80cb2c6f886855183532350aedc02e3ca8ee4 /plugin/file/zone.go | |
parent | 62df253371f354200a3efde9e86e80eb50a2441b (diff) | |
download | coredns-54ec78c1ba918b98ac9b9c5b1334c9d170502119.tar.gz coredns-54ec78c1ba918b98ac9b9c5b1334c9d170502119.tar.zst coredns-54ec78c1ba918b98ac9b9c5b1334c9d170502119.zip |
Fix ineffassign (#1959)
* Fix ineffassign
This fix tries to fix ineffassign, as was reported in:
https://goreportcard.com/report/github.com/coredns/coredns#ineffassign
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
* Update setup.go
Revert this one change, so this can be merged.
Diffstat (limited to 'plugin/file/zone.go')
-rw-r--r-- | plugin/file/zone.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/file/zone.go b/plugin/file/zone.go index 6e1ec6d69..5aa72175f 100644 --- a/plugin/file/zone.go +++ b/plugin/file/zone.go @@ -203,7 +203,7 @@ func (z *Zone) nameFromRight(qname string, i int) (string, bool) { } k := 0 - shot := false + var shot bool for j := 1; j <= i; j++ { k, shot = dns.PrevLabel(qname, j+z.origLen) if shot { |