some staticcheck fixes

This commit is contained in:
RSWilli
2023-09-02 00:04:14 +02:00
parent c1392706ff
commit 095e65c800
20 changed files with 70 additions and 67 deletions

View File

@@ -26,7 +26,7 @@ func tagsetter(mainLoop *glib.MainLoop) error {
gst.Init(nil)
if len(os.Args) < 2 {
return errors.New("Usage: toc <file>")
return errors.New("usage: toc <file>")
}
pipeline, err := gst.NewPipeline("")
@@ -99,7 +99,6 @@ func tagsetter(mainLoop *glib.MainLoop) error {
// End of stream
case gst.MessageEOS:
msg.Unref()
break
// Errors from any elements
case gst.MessageError: