Skip to content

Commit

Permalink
chore: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
o1egl committed Jul 28, 2020
1 parent f5d02cd commit 411a928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/resource.go
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 411a928

Please sign in to comment.