Skip to content

Commit

Permalink
fix: deprecation warning for ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
vruge authored Jan 7, 2024
1 parent 67a8ac3 commit 8f6a9be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions filestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package mqtt

import (
"io/ioutil"
"os"
"path"
"sort"
Expand Down Expand Up @@ -166,7 +165,7 @@ func (store *FileStore) all() []string {
return nil
}

files, err = ioutil.ReadDir(store.directory)
files, err = os.ReadDir(store.directory)
chkerr(err)
sort.Sort(files)
for _, f := range files {
Expand Down

0 comments on commit 8f6a9be

Please sign in to comment.