fallthrough in worker selection

This commit is contained in:
Markus Ongyerth 2018-06-12 12:16:23 +02:00 committed by Drew DeVault
parent dc90be24de
commit 67d14977fa

View file

@ -22,7 +22,7 @@ func NewWorker(source string, logger *log.Logger) (*types.Worker, error) {
Logger: logger, Logger: logger,
} }
switch u.Scheme { switch u.Scheme {
case "imap": case "imap": fallthrough;
case "imaps": case "imaps":
worker.Backend = imap.NewIMAPWorker(worker) worker.Backend = imap.NewIMAPWorker(worker)
default: default: