1
0
mirror of https://github.com/securego/gosec.git synced 2025-11-23 22:15:04 +02:00

chore: fix lint warnings

Signed-off-by: Cosmin Cojocar <gcojocar@adobe.com>
This commit is contained in:
Cosmin Cojocar
2022-08-08 10:37:43 +02:00
committed by Cosmin Cojocar
parent d3933f9e14
commit 0ba05e160a
6 changed files with 10 additions and 14 deletions

View File

@@ -5,7 +5,6 @@ import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
)
const (
@@ -64,7 +63,7 @@ func (c Config) convertGlobals() {
// should be used with io.Reader to load configuration from
// file or from string etc.
func (c Config) ReadFrom(r io.Reader) (int64, error) {
data, err := ioutil.ReadAll(r)
data, err := io.ReadAll(r)
if err != nil {
return int64(len(data)), err
}