From: Sergey Matveev Date: Wed, 18 Feb 2026 14:52:59 +0000 (+0300) Subject: Fix workability with empty -hashes X-Git-Tag: v1.3.0^0 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=b254d68dcca7262809b611a7a8840493cf03c6a6;p=meta4ra.git Fix workability with empty -hashes --- diff --git a/internal/hasher.go b/internal/hasher.go index 8de588f..db2b912 100644 --- a/internal/hasher.go +++ b/internal/hasher.go @@ -33,6 +33,9 @@ type Hasher struct { func NewHasher(hashes string) (*Hasher, error) { h := Hasher{} for hc := range strings.SplitSeq(hashes, ",") { + if hc == "" { + continue + } cols := strings.SplitN(hc, ":", 2) name, cmdline := cols[0], cols[1] if cmdline == BuiltinCmd {