aboutsummaryrefslogtreecommitdiffstats
path: root/worker/maildir/worker.go
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2022-07-31 22:16:40 +0200
committerRobin Jarry <robin@jarry.cc>2022-08-01 10:44:52 +0200
commitaaf0a0c65673db4b94c0dc200d7394a192128da1 (patch)
tree44940936efff55b49a6d359d053f55c7ab824e4d /worker/maildir/worker.go
parent21dcd440f877192af128c00ca2acbabf68bb3ee3 (diff)
downloadaerc-aaf0a0c65673db4b94c0dc200d7394a192128da1.tar.gz
lint: apply new formatting rules
Run `make fmt`. Signed-off-by: Moritz Poldrack <git@moritz.sh> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker/maildir/worker.go')
-rw-r--r--worker/maildir/worker.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go
index d60315b8..838a3b7f 100644
--- a/worker/maildir/worker.go
+++ b/worker/maildir/worker.go
@@ -406,7 +406,8 @@ func (w *Worker) handleOpenDirectory(msg *types.OpenDirectory) error {
}
func (w *Worker) handleFetchDirectoryContents(
- msg *types.FetchDirectoryContents) error {
+ msg *types.FetchDirectoryContents,
+) error {
var (
uids []uint32
err error
@@ -482,7 +483,8 @@ func (w *Worker) handleRemoveDirectory(msg *types.RemoveDirectory) error {
}
func (w *Worker) handleFetchMessageHeaders(
- msg *types.FetchMessageHeaders) error {
+ msg *types.FetchMessageHeaders,
+) error {
for _, uid := range msg.Uids {
info, err := w.msgInfoFromUid(uid)
if err != nil {
@@ -500,8 +502,8 @@ func (w *Worker) handleFetchMessageHeaders(
}
func (w *Worker) handleFetchMessageBodyPart(
- msg *types.FetchMessageBodyPart) error {
-
+ msg *types.FetchMessageBodyPart,
+) error {
// get reader
m, err := w.c.Message(*w.selected, msg.Uid)
if err != nil {