mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-14 06:50:39 +00:00
fix unit tests
This commit is contained in:
@@ -163,6 +163,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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user