Fix typos in models/ and modules/ (#1248)

This commit is contained in:
Ethan Koenig 2017-03-14 20:52:01 -04:00 committed by Lunny Xiao
parent ec0ae5d50c
commit 021904e4e6
26 changed files with 63 additions and 63 deletions

View file

@ -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