Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit 10c7d31

Browse files
author
xh
committed
replace error.New(fmt.Sprintf) with fmt.Errorf
1 parent cb57beb commit 10c7d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ffmpeg/ffmpeg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func (t *Transcoder) validate() error {
184184

185185
for index, output := range t.output {
186186
if output == "" {
187-
return errors.New(fmt.Sprintf("output at index %d is an empty string", index))
187+
return fmt.Errorf("output at index %d is an empty string", index)
188188
}
189189
}
190190

0 commit comments

Comments
 (0)