1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-12 10:10:40 +00:00

gofmt and golint

This commit is contained in:
astaxie
2017-07-19 00:52:27 +08:00
parent aa3d6c5363
commit 4fc95b0d69
6 changed files with 44 additions and 51 deletions

View File

@ -9,7 +9,7 @@ import (
type graceConn struct {
net.Conn
server *Server
m sync.Mutex
m sync.Mutex
closed bool
}
@ -26,7 +26,7 @@ func (c *graceConn) Close() (err error) {
}
}
}()
c.m.Lock()
if c.closed {
c.m.Unlock()