Match format of other code

This commit is contained in:
Luke Young 2014-07-27 10:44:39 -07:00
parent 12f91af6ed
commit 0a6f133b26
1 changed files with 1 additions and 2 deletions

View File

@ -489,9 +489,8 @@ func (w *response) Write(m []byte) (int, error) {
func (w *response) LocalAddr() net.Addr {
if w.tcp != nil {
return w.tcp.LocalAddr()
} else {
return w.udp.LocalAddr()
}
return w.udp.LocalAddr()
}
// RemoteAddr implements the ResponseWriter.RemoteAddr method.