make linter happy

This commit is contained in:
sentriz
2020-07-24 20:33:54 +01:00
committed by Senan Kelly
parent dae1e03940
commit c05b92d924
2 changed files with 11 additions and 5 deletions

View File

@@ -60,7 +60,7 @@ func main() {
log.Fatalf("couldn't create cache path: %v\n", err)
}
}
coverCachePath := path.Join(*cachePath, "covers")
coverCachePath := path.Join(*cachePath, coverCachePrefix)
if _, err := os.Stat(coverCachePath); os.IsNotExist(err) {
if err := os.MkdirAll(coverCachePath, os.ModePerm); err != nil {
log.Fatalf("couldn't create cover cache path: %v\n", err)