diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-03-14 20:52:01 -0400 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-03-15 08:52:01 +0800 |
commit | 021904e4e65804baa67b38e193e15aa37a391c60 (patch) | |
tree | 5c4f74764048eadd39a51c1b27e9c4937a0d236b /modules/log/conn.go | |
parent | ec0ae5d50c59315a3c597b1cf24d4c5508c718e5 (diff) | |
download | gitea-021904e4e65804baa67b38e193e15aa37a391c60.tar.gz gitea-021904e4e65804baa67b38e193e15aa37a391c60.zip |
Fix typos in models/ and modules/ (#1248)
Diffstat (limited to 'modules/log/conn.go')
-rw-r--r-- | modules/log/conn.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/log/conn.go b/modules/log/conn.go index b1801d08f7..edb149dfa5 100644 --- a/modules/log/conn.go +++ b/modules/log/conn.go @@ -42,7 +42,7 @@ func (cw *ConnWriter) WriteMsg(msg string, skip, level int) error { if cw.Level > level { return nil } - if cw.neddedConnectOnMsg() { + if cw.neededConnectOnMsg() { if err := cw.connect(); err != nil { return err } @@ -87,7 +87,7 @@ func (cw *ConnWriter) connect() error { return nil } -func (cw *ConnWriter) neddedConnectOnMsg() bool { +func (cw *ConnWriter) neededConnectOnMsg() bool { if cw.Reconnect { cw.Reconnect = false return true |