refactor(scanner): switch ext() path

This commit is contained in:
sentriz
2022-02-27 20:56:53 +00:00
parent e56f64a758
commit d6492c1521

View File

@@ -459,11 +459,10 @@ func (s *Scanner) cleanGenres(c *Context) error {
} }
func ext(name string) string { func ext(name string) string {
ext := filepath.Ext(name) if ext := filepath.Ext(name); len(ext) > 0 {
if len(ext) == 0 { return ext[1:]
return ""
} }
return ext[1:] return ""
} }
func isCover(name string) bool { func isCover(name string) bool {