Other: fix linter

This commit is contained in:
Jakub
2021-04-11 13:25:04 +02:00
committed by James Houlahan
parent 1f19d4df75
commit aa55c69307
2 changed files with 6 additions and 4 deletions

View File

@ -129,7 +129,7 @@ func fetchMessage(req fetchReq, attachWorkers int) (*pmapi.Message, [][]byte, er
attData := make([][]byte, len(msg.Attachments))
collect := func(idx int, value interface{}) error {
attData[idx] = value.([]byte)
attData[idx] = value.([]byte) //nolint[forcetypeassert] we wan't to panic here
return nil
}