aboutsummaryrefslogtreecommitdiffstats
path: root/worker/imap
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2022-07-29 21:05:12 +0200
committerRobin Jarry <robin@jarry.cc>2022-08-04 21:57:28 +0200
commitf70eecc7cbe0a5d0641503259813e67beadebf8d (patch)
treedad35a3263421e5193664ef276a440c0b27e8251 /worker/imap
parentb92e9dab19fdee1fc0ffc7d562d6516379395bfa (diff)
downloadaerc-f70eecc7cbe0a5d0641503259813e67beadebf8d.tar.gz
lint: remove empty branches (SA9003)
Empty branches are effectively dead code and should therefore be removed. Signed-off-by: Moritz Poldrack <moritz@poldrack.dev> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker/imap')
-rw-r--r--worker/imap/connect.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/worker/imap/connect.go b/worker/imap/connect.go
index bfd95d82..35fd9b11 100644
--- a/worker/imap/connect.go
+++ b/worker/imap/connect.go
@@ -70,10 +70,10 @@ func (w *IMAPWorker) connect() (*client.Client, error) {
if w.config.user != nil {
username := w.config.user.Username()
- password, hasPassword := w.config.user.Password()
- if !hasPassword {
- // TODO: ask password
- }
+
+ // TODO: 2nd parameter false if no password is set. ask for it
+ // if unset.
+ password, _ := w.config.user.Password()
if w.config.oauthBearer.Enabled {
if err := w.config.oauthBearer.Authenticate(