mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-15 10:07:24 +00:00
update golangci-lint and replace deprecated calls to io/ioutil
This commit is contained in:
1 parent
71fd730598
commit
352f4e8772
23 files changed
+30
-52
No files matched your search
@@ -3,7 +3,6 @@ package files
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sync"
|
||||
@@ -81,7 +80,7 @@ func (pool *PackagePool) FilepathList(progress aptly.Progress) ([]string, error)
|
||||
pool.Lock()
|
||||
defer pool.Unlock()
|
||||
|
||||
dirs, err := ioutil.ReadDir(pool.rootPath)
|
||||
dirs, err := os.ReadDir(pool.rootPath)
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
return nil, nil
|
||||
|
||||
Reference in new issue
Block a user