build: fix gocritic lint issue assignop

This commit is contained in:
albertony
2024-05-31 14:37:21 +02:00
committed by Nick Craig-Wood
parent 59501fcdb6
commit c6d3714e73
10 changed files with 13 additions and 13 deletions

View File

@@ -329,7 +329,7 @@ func (c *Cipher) obfuscateSegment(plaintext string) string {
for _, runeValue := range plaintext {
dir += int(runeValue)
}
dir = dir % 256
dir %= 256
// We'll use this number to store in the result filename...
var result bytes.Buffer
@@ -450,7 +450,7 @@ func (c *Cipher) deobfuscateSegment(ciphertext string) (string, error) {
if pos >= 26 {
pos -= 6
}
pos = pos - thisdir
pos -= thisdir
if pos < 0 {
pos += 52
}