refactor: remove redundant err declarations (#32381)

This commit is contained in:
Oleksandr Redko 2024-10-30 21:36:24 +02:00 committed by GitHub
parent dd1f67491f
commit f4d3aaeeb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 3 additions and 20 deletions

View file

@ -136,8 +136,6 @@ var ErrLFSObjectNotExist = db.ErrNotExist{Resource: "LFS Meta object"}
// NewLFSMetaObject stores a given populated LFSMetaObject structure in the database
// if it is not already present.
func NewLFSMetaObject(ctx context.Context, repoID int64, p lfs.Pointer) (*LFSMetaObject, error) {
var err error
ctx, committer, err := db.TxContext(ctx)
if err != nil {
return nil, err