diff --git a/transcode/transcoder_caching.go b/transcode/transcoder_caching.go index 6e909986..6ab3ccea 100644 --- a/transcode/transcoder_caching.go +++ b/transcode/transcoder_caching.go @@ -5,8 +5,8 @@ import ( "crypto/md5" "fmt" "io" - "os" "io/fs" + "os" "path/filepath" "sort" "sync" @@ -109,7 +109,7 @@ func (t *CachingTranscoder) CacheEject() error { unlock := t.locks.Lock(curFile.path) err = os.Remove(curFile.path) unlock() - if (err != nil) { + if err != nil { return fmt.Errorf("remove cache file: %w", err) } }