Skip to content

Commit 23bd102

Browse files
committed
Fix errorf usage
1 parent f85bec6 commit 23bd102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/component/otelcol/config_filter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ type LogSeverityNumberMatchProperties struct {
226226
func (args LogSeverityNumberMatchProperties) convert() (map[string]interface{}, error) {
227227
numVal, exists := severityLevels[args.Min]
228228
if !exists {
229-
return nil, fmt.Errorf(fmt.Sprintf("No severity value for %q", args.Min))
229+
return nil, fmt.Errorf("No severity value for %q", args.Min)
230230
}
231231

232232
return map[string]interface{}{

0 commit comments

Comments
 (0)