fix: use filepath helpers for filesystem paths

This commit is contained in:
Mathis Maquenne
2026-08-05 12:41:55 +02:00
parent b616a58d7b
commit e90a56ec53
7 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
package tag
import (
"path"
"path/filepath"
"github.com/bogem/id3v2/v2"
"github.com/go-flac/flacvorbis/v2"
@@ -39,7 +39,7 @@ type tagger interface {
}
func newTagger(filePath string) (tagger, error) {
if path.Ext(filePath) == ".mp3" {
if filepath.Ext(filePath) == ".mp3" {
tag, err := id3v2.Open(filePath, id3v2.Options{Parse: true})
if err != nil {
return nil, err