Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
neolynx committed Sep 26, 2024
1 parent b82ac2e commit ebffed4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deb/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ func (repo *LocalRepo) String() string {

// NumPackages return number of packages in local repo
func (repo *LocalRepo) NumPackages() int {
if repo.packageRefs == nil {
return 0
}
return repo.packageRefs.Len()
}

Expand Down
3 changes: 3 additions & 0 deletions deb/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ func (repo *RemoteRepo) IsFlat() bool {

// NumPackages return number of packages retrieved from remote repo
func (repo *RemoteRepo) NumPackages() int {
if repo.packageRefs == nil {
return 0
}
return repo.packageRefs.Len()
}

Expand Down

0 comments on commit ebffed4

Please sign in to comment.