mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-15 10:07:24 +00:00
fix unit tests
This commit is contained in:
1 parent
174bdc2b5e
commit
2a07494910
2 files changed
+6
No files matched your search
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
@@ -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