Skip to content

Commit 3cdb5ab

Browse files
committed
enable stylecheck
1 parent 8e3bbbe commit 3cdb5ab

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Diff for: .etc/golangci.yml

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ linters:
33
disable:
44
- ineffassign
55
- gocritic
6-
- stylecheck
76
- errcheck
87
- misspell
98
- scopelint

Diff for: dh/sidh/sike.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ func (c *KEM) encrypt(ctext []byte, rng io.Reader, pub *PublicKey, ptext []byte)
222222
var ptextLen = len(ptext)
223223
// c1 must be security level + 64 bits (see [SIKE] 1.4 and 4.3.3)
224224
if ptextLen != (pub.params.KemSize + 8) {
225-
return errors.New("Unsupported message length")
225+
return errors.New("unsupported message length")
226226
}
227227

228228
skA := NewPrivateKey(pub.params.ID, KeyVariantSidhA)

Diff for: internal/test/test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func CheckIsErr(t testing.TB, err error, msg string) { t.Helper(); checkErr(t, e
4040

4141
// CheckPanic returns true if call to function 'f' caused panic
4242
func CheckPanic(f func()) error {
43-
var hasPaniced = errors.New("No panic detected")
43+
var hasPaniced = errors.New("no panic detected")
4444
defer func() {
4545
if r := recover(); r != nil {
4646
hasPaniced = nil

0 commit comments

Comments
 (0)