Skip to content

Commit

Permalink
[build][enhance] add empty function into listpools entity
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongpiger committed Jun 23, 2024
1 parent 0c31235 commit 5bacece
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vngcloud/entity/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@ func (s *ListMembers) Add(members ...*Member) {
func (s *ListPools) Len() int {
return len(s.Items)
}

func (s *ListPools) Empty() bool {
return s.Len() < 1
}

0 comments on commit 5bacece

Please sign in to comment.