From ce21ba154585395e792c059ac156299071405247 Mon Sep 17 00:00:00 2001 From: Duco van Amstel Date: Thu, 15 Nov 2018 19:43:43 +0000 Subject: Fix golint linter issues and enable it in CI (#593) --- bridge/sshchat/sshchat.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bridge/sshchat') diff --git a/bridge/sshchat/sshchat.go b/bridge/sshchat/sshchat.go index 846a9081..827c81de 100644 --- a/bridge/sshchat/sshchat.go +++ b/bridge/sshchat/sshchat.go @@ -31,7 +31,7 @@ func (b *Bsshchat) Connect() error { b.w = w b.r.Scan() w.Write([]byte("/theme mono\r\n")) - b.handleSshChat() + b.handleSSHChat() return nil }) }() @@ -53,7 +53,7 @@ func (b *Bsshchat) JoinChannel(channel config.ChannelInfo) error { func (b *Bsshchat) Send(msg config.Message) (string, error) { // ignore delete messages - if msg.Event == config.EVENT_MSG_DELETE { + if msg.Event == config.EventMsgDelete { return "", nil } b.Log.Debugf("=> Receiving %#v", msg) @@ -113,7 +113,7 @@ func stripPrompt(s string) string { return s[pos+3:] } -func (b *Bsshchat) handleSshChat() error { +func (b *Bsshchat) handleSSHChat() error { /* done := b.sshchatKeepAlive() defer close(done) -- cgit v1.2.3