mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 16:17:03 +00:00
Other: fix linter
This commit is contained in:
@ -129,7 +129,7 @@ func fetchMessage(req fetchReq, attachWorkers int) (*pmapi.Message, [][]byte, er
|
|||||||
attData := make([][]byte, len(msg.Attachments))
|
attData := make([][]byte, len(msg.Attachments))
|
||||||
|
|
||||||
collect := func(idx int, value interface{}) error {
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -27,9 +27,9 @@ import (
|
|||||||
"github.com/emersion/go-message"
|
"github.com/emersion/go-message"
|
||||||
)
|
)
|
||||||
|
|
||||||
// writeCustomTextPart writes an armored-PGP text part for a message body that couldn't be decrypted.
|
/* writeCustomTextPart writes an armored-PGP text part for a message body that couldn't be decrypted.
|
||||||
// The following is an example of such a message.
|
The following is an example of such a message:
|
||||||
/*
|
|
||||||
Mime-Version: 1.0
|
Mime-Version: 1.0
|
||||||
Content-Type: multipart/mixed;
|
Content-Type: multipart/mixed;
|
||||||
boundary=d8a04ef2e12150946d27f84fc82b9e70a5e314f91a0f2190e38c7aad623466da
|
boundary=d8a04ef2e12150946d27f84fc82b9e70a5e314f91a0f2190e38c7aad623466da
|
||||||
@ -60,6 +60,8 @@ La1Cc6aFtMPUShzNc3Wp3dVLM09WygEUsYZFmA==
|
|||||||
=00ma
|
=00ma
|
||||||
-----END PGP MESSAGE-----
|
-----END PGP MESSAGE-----
|
||||||
--d8a04ef2e12150946d27f84fc82b9e70a5e314f91a0f2190e38c7aad623466da--
|
--d8a04ef2e12150946d27f84fc82b9e70a5e314f91a0f2190e38c7aad623466da--
|
||||||
|
|
||||||
|
.
|
||||||
*/
|
*/
|
||||||
func writeCustomTextPart(
|
func writeCustomTextPart(
|
||||||
w *message.Writer,
|
w *message.Writer,
|
||||||
|
|||||||
Reference in New Issue
Block a user