diff options
author | Moritz Poldrack <git@moritz.sh> | 2022-08-17 16:19:45 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-08-22 09:30:19 +0200 |
commit | 9cffc45f0347e5c8b801c151955fa9326b9b2ba7 (patch) | |
tree | 4de8e74f1ec7378297185f65807cb9019caf1a1a /completer | |
parent | 1b91b68e7385239783bee818974c4ce2032b7039 (diff) | |
download | aerc-9cffc45f0347e5c8b801c151955fa9326b9b2ba7.tar.gz |
go: removed io/ioutil
Since the minimum required version of Go has been bumped to 1.16, the
deprecation of io/ioutil can now be acted upon. This Commit removes the
remaining dependencies on ioutil and replaces them with their io or os
counterparts.
Signed-off-by: Moritz Poldrack <git@moritz.sh>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'completer')
-rw-r--r-- | completer/completer.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/completer/completer.go b/completer/completer.go index 202607a9..bbeb5f1c 100644 --- a/completer/completer.go +++ b/completer/completer.go @@ -5,7 +5,6 @@ import ( "errors" "fmt" "io" - "io/ioutil" "mime" "net/mail" "os/exec" @@ -100,7 +99,7 @@ func (c *Completer) completeAddress(s string) ([]string, string, error) { completions, err := readCompletions(stdout) if err != nil { - buf, _ := ioutil.ReadAll(stderr) + buf, _ := io.ReadAll(stderr) msg := strings.TrimSpace(string(buf)) if msg != "" { msg = ": " + msg |