align log level across plugins
happy lint happy lint
This commit is contained in:
parent
d3ec47f4ec
commit
319824e564
13 changed files with 286 additions and 230 deletions
|
|
@ -4,7 +4,6 @@ import (
|
|||
"bufio"
|
||||
"bytes"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"os"
|
||||
"path"
|
||||
|
|
@ -148,7 +147,7 @@ func (w *Workingdir) Readfile(file string) ([]byte, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
return ioutil.ReadFile(w.fullpath(file))
|
||||
return os.ReadFile(w.fullpath(file))
|
||||
}
|
||||
|
||||
func parseUpstreamFile(data string) (host string, port int, user string, err error) {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ import (
|
|||
"bytes"
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
|
@ -91,7 +90,7 @@ func (p *plugin) loadConfig() (piperConfig, error) {
|
|||
return config, err
|
||||
}
|
||||
|
||||
configbyte, err := ioutil.ReadFile(p.File)
|
||||
configbyte, err := os.ReadFile(p.File)
|
||||
if err != nil {
|
||||
return config, err
|
||||
}
|
||||
|
|
@ -120,7 +119,7 @@ func (p *plugin) loadFileOrDecode(file string, base64data string, vars map[strin
|
|||
file = filepath.Join(filepath.Dir(p.File), file)
|
||||
}
|
||||
|
||||
return ioutil.ReadFile(file)
|
||||
return os.ReadFile(file)
|
||||
}
|
||||
|
||||
if base64data != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue