aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--worker/maildir/worker.go2
-rw-r--r--worker/notmuch/worker.go8
2 files changed, 3 insertions, 7 deletions
diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go
index 4a7ae51f..87ebc978 100644
--- a/worker/maildir/worker.go
+++ b/worker/maildir/worker.go
@@ -299,12 +299,10 @@ func (w *Worker) handleOpenDirectory(msg *types.OpenDirectory) error {
return fmt.Errorf("could not clean directory: %v", err)
}
- // TODO: why does this need to be sent twice??
info := &types.DirectoryInfo{
Info: w.getDirectoryInfo(msg.Directory),
}
w.worker.PostMessage(info, nil)
- w.worker.PostMessage(info, nil)
return nil
}
diff --git a/worker/notmuch/worker.go b/worker/notmuch/worker.go
index 6281744b..637bb4d8 100644
--- a/worker/notmuch/worker.go
+++ b/worker/notmuch/worker.go
@@ -251,8 +251,6 @@ func (w *worker) handleOpenDirectory(msg *types.OpenDirectory) error {
return err
}
info.Message = types.RespondTo(msg)
- //TODO: why does this need to be sent twice??
- w.w.PostMessage(info, nil)
w.w.PostMessage(info, nil)
w.done(msg)
return nil
@@ -507,9 +505,9 @@ func (w *worker) loadExcludeTags(
return nil
}
excludedTags := strings.Split(raw, ",")
- for idx, tag := range excludedTags {
- excludedTags[idx] = strings.Trim(tag, " ")
- }
+ for idx, tag := range excludedTags {
+ excludedTags[idx] = strings.Trim(tag, " ")
+ }
return excludedTags
}