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>
This commit is contained in:
parent
b92e9dab19
commit
f70eecc7cb
1 changed files with 4 additions and 4 deletions
|
@ -70,10 +70,10 @@ func (w *IMAPWorker) connect() (*client.Client, error) {
|
||||||
|
|
||||||
if w.config.user != nil {
|
if w.config.user != nil {
|
||||||
username := w.config.user.Username()
|
username := w.config.user.Username()
|
||||||
password, hasPassword := w.config.user.Password()
|
|
||||||
if !hasPassword {
|
// TODO: 2nd parameter false if no password is set. ask for it
|
||||||
// TODO: ask password
|
// if unset.
|
||||||
}
|
password, _ := w.config.user.Password()
|
||||||
|
|
||||||
if w.config.oauthBearer.Enabled {
|
if w.config.oauthBearer.Enabled {
|
||||||
if err := w.config.oauthBearer.Authenticate(
|
if err := w.config.oauthBearer.Authenticate(
|
||||||
|
|
Loading…
Reference in a new issue