aboutsummaryrefslogtreecommitdiff
path: root/middleware/federation/federation.go
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com> 2017-08-26 17:32:16 -0700
committerGravatar GitHub <noreply@github.com> 2017-08-26 17:32:16 -0700
commit01f6e8cba5ab12c5401ef73b0ac9a1d6ac07fcce (patch)
tree276262e5c73e67744232f69d2cfd18f442f886cb /middleware/federation/federation.go
parent1bb836b7936fc4b6e2ec3678919fc1eb5b17983b (diff)
downloadcoredns-01f6e8cba5ab12c5401ef73b0ac9a1d6ac07fcce.tar.gz
coredns-01f6e8cba5ab12c5401ef73b0ac9a1d6ac07fcce.tar.zst
coredns-01f6e8cba5ab12c5401ef73b0ac9a1d6ac07fcce.zip
Cleanup in go vet and misspell (#996)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'middleware/federation/federation.go')
-rw-r--r--middleware/federation/federation.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/federation/federation.go b/middleware/federation/federation.go
index 724dcb656..700b74685 100644
--- a/middleware/federation/federation.go
+++ b/middleware/federation/federation.go
@@ -118,7 +118,7 @@ func (f *Federation) Name() string { return "federation" }
// label is always the 2nd to last once the zone is chopped of. For instance
// "nginx.mynamespace.myfederation.svc.example.com" has "myfederation" as the federation label.
// IsNameFederation returns a new qname with the federation label and the label itself or two
-// emtpy strings if there wasn't a hit.
+// empty strings if there wasn't a hit.
func (f *Federation) isNameFederation(name, zone string) (string, string) {
base, _ := dnsutil.TrimZone(name, zone)