tired of typing "struct{}{}"

This commit is contained in:
Matthias Radestock committed 2015-04-06 11:53:51 +01:00
1 parent 6db12d682e
commit e8e9a43abd
5 files changed
+10 -8

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ func newMockConnection(from, to *Peer) Connection {
func checkEqualConns(t *testing.T, ourName PeerName, got, wanted map[PeerName]Connection) {
checkConns := make(PeerNameSet)
for _, conn := range wanted {
checkConns[conn.Remote().Name] = struct{}{}
checkConns[conn.Remote().Name] = void
}
for _, conn := range got {
remoteName := conn.Remote().Name