aboutsummaryrefslogtreecommitdiffstats
path: root/worker/maildir/search.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/maildir/search.go')
-rw-r--r--worker/maildir/search.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/worker/maildir/search.go b/worker/maildir/search.go
index 6260deb4..2ad1c0e1 100644
--- a/worker/maildir/search.go
+++ b/worker/maildir/search.go
@@ -1,7 +1,7 @@
package maildir
import (
- "io/ioutil"
+ "io"
"net/textproto"
"strings"
"unicode"
@@ -151,7 +151,7 @@ func (w *Worker) searchKey(key uint32, criteria *searchCriteria,
if err != nil {
return false, err
}
- bytes, err := ioutil.ReadAll(reader)
+ bytes, err := io.ReadAll(reader)
if err != nil {
return false, err
}
@@ -163,7 +163,7 @@ func (w *Worker) searchKey(key uint32, criteria *searchCriteria,
return false, err
}
defer reader.Close()
- bytes, err := ioutil.ReadAll(reader)
+ bytes, err := io.ReadAll(reader)
if err != nil {
return false, err
}