mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-20 14:22:50 -08:00
fix: enable err-error and errorf rules from perfsprint linter (#7859)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -3,6 +3,7 @@ package parser
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
@@ -137,7 +138,7 @@ func (p *Parameters) UnmarshalJSON(data []byte) error {
|
||||
(*p)[param.ParameterKey] = param.ParameterValue
|
||||
}
|
||||
default:
|
||||
return fmt.Errorf("unsupported parameters format")
|
||||
return errors.New("unsupported parameters format")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user