chore: fix lint errors

pull/1051/head
Oleg Lobanov 2020-07-28 13:40:06 +02:00
parent f5d02cdde9
commit 411a928fea
No known key found for this signature in database
GPG Key ID: 7CC64E41212621B0
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ func resourceDeleteHandler(fileCache FileCache) handleFunc {
// delete thumbnails
for _, previewSizeName := range PreviewSizeNames() {
size, _ := ParsePreviewSize(previewSizeName)
if err := fileCache.Delete(r.Context(), previewCacheKey(file.Path, size)); err != nil {
if err := fileCache.Delete(r.Context(), previewCacheKey(file.Path, size)); err != nil { //nolint:govet
return errToStatus(err), err
}
}