refactor: return slice instead of pointer to slice from tombstone()
This commit is contained in:
1 parent
a9229b9197
commit
66473e6021
2 files changed
+5
-5
No files matched your search
+2
-2
@@ -131,7 +131,7 @@ func (es *Entries) merge(incoming Entries) Entries {
|
||||
return newEntries
|
||||
}
|
||||
|
||||
func (es *Entries) tombstone(ourname router.PeerName, f func(*Entry) bool) *Entries {
|
||||
func (es *Entries) tombstone(ourname router.PeerName, f func(*Entry) bool) Entries {
|
||||
es.checkAndPanic()
|
||||
defer es.checkAndPanic()
|
||||
tombstoned := Entries{}
|
||||
@@ -143,7 +143,7 @@ func (es *Entries) tombstone(ourname router.PeerName, f func(*Entry) bool) *Entr
|
||||
tombstoned = append(tombstoned, e)
|
||||
}
|
||||
}
|
||||
return &tombstoned
|
||||
return tombstoned
|
||||
}
|
||||
|
||||
func (es *Entries) filter(f func(*Entry) bool) {
|
||||
|
||||
Reference in new issue
Block a user