mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
chore: fix typos found by codespell
This commit is contained in:
committed by
Romain LE JEUNE
parent
0d57e3645a
commit
66bc911652
@ -24,7 +24,7 @@ import (
|
||||
|
||||
var ErrInvalidReplyType = errors.New("reply type does not match")
|
||||
|
||||
// Utilities to implement Chanel Procedure Calls. Similar in concept to RPC, but with between go-routines.
|
||||
// Utilities to implement Channel Procedure Calls. Similar in concept to RPC, but with between go-routines.
|
||||
|
||||
// Request contains the data for a request as well as the means to reply to a request.
|
||||
type Request struct {
|
||||
|
||||
@ -115,7 +115,7 @@ func (h *macOSHelper) Get(secretURL string) (string, string, error) {
|
||||
|
||||
results, err := keychain.QueryItem(query)
|
||||
if err != nil {
|
||||
l.WithError(err).Error("Querry item failed")
|
||||
l.WithError(err).Error("Query item failed")
|
||||
return "", "", parseError(err)
|
||||
}
|
||||
|
||||
|
||||
@ -205,7 +205,7 @@ func EncodeHeader(s string) string {
|
||||
return mime.QEncoding.Encode("utf-8", s)
|
||||
}
|
||||
|
||||
// DecodeCharset decodes the orginal using content type parameters.
|
||||
// DecodeCharset decodes the original using content type parameters.
|
||||
// If the charset parameter is missing it checks that the content is valid utf8.
|
||||
// If it isn't, it checks if it's embedded in the html/xml.
|
||||
// If it isn't, it falls back to windows-1252.
|
||||
@ -240,7 +240,7 @@ func DecodeCharset(original []byte, contentType string) ([]byte, error) {
|
||||
logrus.WithField("encoding", name).Warn("Determined encoding but was not certain")
|
||||
}
|
||||
|
||||
// Reencode as UTF-8.
|
||||
// Re-encode as UTF-8.
|
||||
decoded, err := encoding.NewDecoder().Bytes(original)
|
||||
if err != nil {
|
||||
return original, errors.Wrap(err, "failed to decode as windows-1252")
|
||||
|
||||
@ -446,7 +446,7 @@ func TestEncodeReader(t *testing.T) {
|
||||
}
|
||||
|
||||
if bytes.Equal(decoded, expected) {
|
||||
// fmt.Println("Succesfull decoding of ", val.params, ":", string(decoded))
|
||||
// fmt.Println("Successful decoding of ", val.params, ":", string(decoded))
|
||||
} else {
|
||||
t.Error("Wrong encoding of ", val.charset, ".Expected\n", expected, "\nbut have\n", decoded)
|
||||
}
|
||||
|
||||
@ -28,7 +28,7 @@ import (
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// maxFileSize limit tre single file size after decopression is not larger than 1GB.
|
||||
// maxFileSize limit the single file size after decompression is not larger than 1GB.
|
||||
const maxFileSize = int64(1 * 1024 * 1024 * 1024) // 1 GB
|
||||
|
||||
// ErrFileTooLarge returned when decompressed file is too large.
|
||||
|
||||
Reference in New Issue
Block a user