mirror of
https://github.com/pgsty/minio.git
synced 2026-10-06 09:45:58 +03:00
lambda/event: fix TargetIDSet.IsEmpty and add regression test
Signed-off-by: AleksaMCode <aleksamcode@gmail.com>
This commit is contained in:
@@ -24,7 +24,7 @@ type TargetIDSet map[TargetID]struct{}
|
||||
|
||||
// IsEmpty returns true if the set is empty.
|
||||
func (set TargetIDSet) IsEmpty() bool {
|
||||
return len(set) != 0
|
||||
return len(set) == 0
|
||||
}
|
||||
|
||||
// Clone - returns copy of this set.
|
||||
|
||||
Reference in New Issue
Block a user