aboutsummaryrefslogtreecommitdiff
path: root/internal/imap/connection.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-26 17:31:33 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-26 17:31:33 +0200
commit835d5f3547f10ede1997a938d9278a506a089bb7 (patch)
tree8bf73e9a068d1ebacc2fe8888e708dd7ac7ae0c1 /internal/imap/connection.go
parent7ed48c710d1c95b74d3da60d55a4c30a30400617 (diff)
downloadfeed2imap-go-835d5f3547f10ede1997a938d9278a506a089bb7.tar.gz
feed2imap-go-835d5f3547f10ede1997a938d9278a506a089bb7.tar.bz2
feed2imap-go-835d5f3547f10ede1997a938d9278a506a089bb7.zip
Some linting remarks
Diffstat (limited to 'internal/imap/connection.go')
-rw-r--r--internal/imap/connection.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/imap/connection.go b/internal/imap/connection.go
index 4d209a9..5f62586 100644
--- a/internal/imap/connection.go
+++ b/internal/imap/connection.go
@@ -102,10 +102,10 @@ func (conn *connection) ensureFolder(folder Folder) error {
if conn.mailboxes.locking(folder) {
// someone else tried to create the MB -- try again, now that he's done
return conn.ensureFolder(folder)
- } else {
- defer conn.mailboxes.unlocking(folder)
}
+ defer conn.mailboxes.unlocking(folder)
+
log.Printf("Checking for folder '%s'", folder)
mbox, found, err := conn.list(folder.str)