Skip to content

Commit

Permalink
Merge pull request #4 from ryarnyah/fix/ineffassign-err
Browse files Browse the repository at this point in the history
Resolve ineffassign
  • Loading branch information
ryarnyah committed Sep 3, 2018
2 parents f7240c4 + 7231293 commit fa341b4
Show file tree
Hide file tree
Showing 2 changed files with 314 additions and 310 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ func (handler *dnsHandler) ServeDNS(w dns.ResponseWriter, r *dns.Msg) {
}

dnsResp, err := resolveDnsQuery(client, r, handler.config.CacheTTL, server)
if err != nil {
log.Errorf("unable to find resolve dns query for %s : %s", questionDomain, err)
return
}
if err := w.WriteMsg(dnsResp); err != nil {
log.Errorf("unable to write msg %s", err)
}
Expand Down
Loading

0 comments on commit fa341b4

Please sign in to comment.