Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
HiteshRepo committed Dec 29, 2023
1 parent 628f5db commit e8c1106
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 3 additions & 6 deletions src/internal/m365/collection/site/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ func CollectPages(
scope,
su,
bpc.Options,
nil,
)
nil)
collection.SetBetaService(betaService)
collection.AddItem(tuple.ID)

Expand Down Expand Up @@ -253,8 +252,7 @@ func populateListsCollections(
scope,
su,
bpc.Options,
counter.Local(),
)
counter.Local())
collection.AddItem(ptr.Val(list.GetId()))

spcsMap[storageDir.String()] = collection
Expand Down Expand Up @@ -347,6 +345,5 @@ func makeMetadataCollection(
graph.NewMetadataEntry(metadata.PreviousPathFileName, currPaths),
},
su,
counter,
)
counter)
}
6 changes: 2 additions & 4 deletions src/internal/m365/collection/site/backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ func (suite *SharePointBackupUnitSuite) TestCollectLists() {
sel.Lists(selectors.Any())[0],
statusUpdater,
count.New(),
fault.New(false),
)
fault.New(false))

test.expectErr(t, err, clues.ToCore(err))
assert.Len(t, cs, test.expectColls, "number of collections")
Expand Down Expand Up @@ -270,8 +269,7 @@ func (suite *SharePointBackupUnitSuite) TestCollectLists_incremental() {
test.lists,
test.deltaPaths,
count.New(),
fault.New(false),
)
fault.New(false))

test.expectErr(t, err, clues.ToCore(err))
assert.Len(t, cs, test.expectColls, "number of collections")
Expand Down

0 comments on commit e8c1106

Please sign in to comment.