Fix lint
This commit is contained in:
parent
fca01583bf
commit
d4e56bc3d5
1 changed files with 1 additions and 3 deletions
|
|
@ -16,9 +16,7 @@ import (
|
||||||
"github.com/sipeed/picoclaw/pkg/media"
|
"github.com/sipeed/picoclaw/pkg/media"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var audioExtensions = []string{".mp3", ".wav", ".ogg", ".m4a", ".flac", ".aac", ".wma"}
|
||||||
audioExtensions = []string{".mp3", ".wav", ".ogg", ".m4a", ".flac", ".aac", ".wma"}
|
|
||||||
)
|
|
||||||
|
|
||||||
func AudioFormat(path string) (string, error) {
|
func AudioFormat(path string) (string, error) {
|
||||||
ext := strings.ToLower(filepath.Ext(path))
|
ext := strings.ToLower(filepath.Ext(path))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue