From a0be5e80256b98237241b2f3d7825484e7a9c964 Mon Sep 17 00:00:00 2001 From: emersion Date: Wed, 10 Jan 2018 17:19:45 +0100 Subject: Misc idiomatic fixes --- worker/imap/worker.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'worker/imap') diff --git a/worker/imap/worker.go b/worker/imap/worker.go index 7525da5..6ffdf3a 100644 --- a/worker/imap/worker.go +++ b/worker/imap/worker.go @@ -1,10 +1,10 @@ package imap import ( - "git.sr.ht/~sircmpwn/aerc2/worker/types" - "fmt" "time" + + "git.sr.ht/~sircmpwn/aerc2/worker/types" ) type IMAPWorker struct { @@ -32,15 +32,15 @@ func (w *IMAPWorker) PostAction(msg types.WorkerMessage) { w.actions <- msg } -func (w *IMAPWorker) handleMessage(_msg types.WorkerMessage) { - switch msg := _msg.(type) { +func (w *IMAPWorker) handleMessage(msg types.WorkerMessage) { + switch msg := msg.(type) { case types.Ping: w.messages <- types.Ack{ Message: types.RespondTo(msg), } default: w.messages <- types.Unsupported{ - Message: types.RespondTo(_msg), + Message: types.RespondTo(msg), } } } -- cgit v1.2.3