Skip to content

Commit

Permalink
Revert "fix empty mirror check"
Browse files Browse the repository at this point in the history
This reverts commit 09a44ba.
  • Loading branch information
neolynx committed Jan 11, 2025
1 parent 4076941 commit aa0830f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deb/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type Snapshot struct {

// NewSnapshotFromRepository creates snapshot from current state of repository
func NewSnapshotFromRepository(name string, repo *RemoteRepo) (*Snapshot, error) {
if repo.packageRefs == nil || repo.packageRefs.Len() == 0 {
if repo.packageRefs == nil {
return nil, errors.New("mirror not updated")
}

Expand Down

0 comments on commit aa0830f

Please sign in to comment.