gofmt simplify
This commit is contained in:
parent
fb8c549e9d
commit
dfcb852487
|
@ -130,7 +130,7 @@ func BenchmarkConnectionMainReadLoop(b *testing.B) {
|
|||
// The chunk must be written to storage everytime, to ensure the
|
||||
// writeSem is unlocked.
|
||||
t.pieces[0].dirtyChunks.Clear()
|
||||
cn.validReceiveChunks = map[request]struct{}{newRequestFromMessage(&msg): struct{}{}}
|
||||
cn.validReceiveChunks = map[request]struct{}{newRequestFromMessage(&msg): {}}
|
||||
cl.unlock()
|
||||
n, err := w.Write(wb)
|
||||
require.NoError(b, err)
|
||||
|
|
|
@ -81,7 +81,7 @@ func (mi *MetaInfo) UpvertedAnnounceList() AnnounceList {
|
|||
return mi.AnnounceList
|
||||
}
|
||||
if mi.Announce != "" {
|
||||
return [][]string{[]string{mi.Announce}}
|
||||
return [][]string{{mi.Announce}}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue