Skip to content

Commit

Permalink
bring annoying linting message back
Browse files Browse the repository at this point in the history
Signed-off-by: jkoberg <jkoberg@owncloud.com>
  • Loading branch information
kobergj committed Dec 13, 2022
1 parent a37d40b commit 3811191
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
issues:
exclude:
- "Error return value of .* is not checked"
exclude-rules:
- path: internal/http/interceptors/log/log.go
text: "SA1019:"
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/utils/decomposedfs/decomposedfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func (fs *Decomposedfs) Postprocessing(ch <-chan interface{}) {
} else {
// update parent tmtime to propagate etag change
now := time.Now()
p.SetTMTime(&now)
_ = p.SetTMTime(&now)
if err := fs.tp.Propagate(ctx, p, 0); err != nil {
log.Error().Err(err).Str("uploadID", ev.UploadID).Msg("could not propagate etag change")
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/utils/decomposedfs/upload/processing.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func CreateNodeForUpload(upload *Upload, initAttrs map[string]string) (*node.Nod
lock, err = updateExistingNode(upload, n, spaceID, uint64(fsize))
}

defer filelocks.ReleaseLock(lock)
defer filelocks.ReleaseLock(lock) //nolint:errcheck
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 3811191

Please sign in to comment.