aboutsummaryrefslogtreecommitdiffstats
path: root/worker/mbox
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/mbox
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/mbox')
-rw-r--r--worker/mbox/create.go1
-rw-r--r--worker/mbox/worker.go6
2 files changed, 4 insertions, 3 deletions
diff --git a/worker/mbox/create.go b/worker/mbox/create.go
index 7c4d9f7b..266398ab 100644
--- a/worker/mbox/create.go
+++ b/worker/mbox/create.go
@@ -8,7 +8,6 @@ import (
)
func createMailboxContainer(path string) (*mailboxContainer, error) {
-
file, err := os.Open(path)
if err != nil {
return nil, err
diff --git a/worker/mbox/worker.go b/worker/mbox/worker.go
index 4c0a1271..6ba886ae 100644
--- a/worker/mbox/worker.go
+++ b/worker/mbox/worker.go
@@ -99,7 +99,8 @@ func (w *mboxWorker) handleMessage(msg types.WorkerMessage) error {
if !ok {
w.folder = w.data.Create(w.name)
w.worker.PostMessage(&types.Done{
- Message: types.RespondTo(&types.CreateDirectory{})}, nil)
+ Message: types.RespondTo(&types.CreateDirectory{}),
+ }, nil)
}
w.worker.PostMessage(&types.DirectoryInfo{
Info: w.data.DirectoryInfo(msg.Directory),
@@ -338,7 +339,8 @@ func (w *mboxWorker) handleMessage(msg types.WorkerMessage) error {
if !ok {
folder = w.data.Create(msg.Destination)
w.worker.PostMessage(&types.Done{
- Message: types.RespondTo(&types.CreateDirectory{})}, nil)
+ Message: types.RespondTo(&types.CreateDirectory{}),
+ }, nil)
}
if err := folder.Append(msg.Reader, msg.Flags); err != nil {