mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-10-28 15:02:28 +00:00
Apply go fix to simplify using modern features
This patch contains the result of running `go fix ./...`, which applies simplifications that make use of modern language features. There are no logic or behaviour changes.
This commit is contained in:
@@ -104,8 +104,8 @@ func parsePublicKey(v string) (*publicKey, error) {
|
||||
|
||||
// h is a colon-separated list of hashing algorithm names.
|
||||
if tags["h"] != "" {
|
||||
hs := strings.Split(eatWhitespace.Replace(tags["h"]), ":")
|
||||
for _, h := range hs {
|
||||
hs := strings.SplitSeq(eatWhitespace.Replace(tags["h"]), ":")
|
||||
for h := range hs {
|
||||
x, err := hashFromString(h)
|
||||
if err != nil {
|
||||
// Unrecognized algorithms must be ignored.
|
||||
|
||||
Reference in New Issue
Block a user