Skip to content

Commit 36f2a6e

Browse files
committed
Fix lint
1 parent 1db3334 commit 36f2a6e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

integrations/lfs_getobject_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func storeObjectInRepo(t *testing.T, repositoryID int64, content *[]byte) string
5050
lfsID++
5151
lfsMetaObject, err = models.NewLFSMetaObject(lfsMetaObject)
5252
assert.NoError(t, err)
53-
contentStore := &lfs.ContentStore{storage.LFS}
53+
contentStore := &lfs.ContentStore{ObjectStorage: storage.LFS}
5454
exist, err := contentStore.Exists(lfsMetaObject)
5555
assert.NoError(t, err)
5656
if !exist {

modules/repofiles/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ func CreateOrUpdateRepoFile(repo *models.Repository, doer *models.User, opts *Up
434434
if err != nil {
435435
return nil, err
436436
}
437-
contentStore := &lfs.ContentStore{storage.LFS}
437+
contentStore := &lfs.ContentStore{ObjectStorage: storage.LFS}
438438
exist, err := contentStore.Exists(lfsMetaObject)
439439
if err != nil {
440440
return nil, err

modules/repofiles/upload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func UploadRepoFiles(repo *models.Repository, doer *models.User, opts *UploadRep
164164

165165
// OK now we can insert the data into the store - there's no way to clean up the store
166166
// once it's in there, it's in there.
167-
contentStore := &lfs.ContentStore{storage.LFS}
167+
contentStore := &lfs.ContentStore{ObjectStorage: storage.LFS}
168168
for _, uploadInfo := range infos {
169169
if uploadInfo.lfsMetaObject == nil {
170170
continue

0 commit comments

Comments
 (0)