aboutsummaryrefslogtreecommitdiff
path: root/lib/email/dkim/hashalg.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/email/dkim/hashalg.go')
-rw-r--r--lib/email/dkim/hashalg.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/email/dkim/hashalg.go b/lib/email/dkim/hashalg.go
index 280ab144..b856f82d 100644
--- a/lib/email/dkim/hashalg.go
+++ b/lib/email/dkim/hashalg.go
@@ -1,6 +1,6 @@
-// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
+// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info>
+//
+// SPDX-License-Identifier: BSD-3-Clause
package dkim
@@ -26,7 +26,7 @@ var hashAlgNames = map[HashAlg][]byte{
func unpackHashAlgs(v []byte) (hashAlgs []HashAlg) {
algs := bytes.Split(v, sepColon)
- for x := 0; x < len(algs); x++ {
+ for x := range len(algs) {
for k, v := range hashAlgNames {
if bytes.Equal(v, algs[x]) {
hashAlgs = append(hashAlgs, k)