mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 17:47:03 +00:00
chore: more small lint/perf fixes (#493)
Signed-off-by: James Hillyerd <james@hillyerd.com>
This commit is contained in:
@@ -140,7 +140,7 @@ func (hub *Hub) RemoveListener(l Listener) {
|
||||
// for unit tests.
|
||||
func (hub *Hub) Sync() {
|
||||
done := make(chan struct{})
|
||||
hub.opChan <- func(h *Hub) {
|
||||
hub.opChan <- func(_ *Hub) {
|
||||
close(done)
|
||||
}
|
||||
<-done
|
||||
|
||||
Reference in New Issue
Block a user