Commit cfb83a6e authored by zauberstuhl's avatar zauberstuhl

Throw error if text is empty in AuthorSignature

parent 16c14fb7
......@@ -92,6 +92,9 @@ func AuthorSignature(data interface{}, order, privKey string) (string, error) {
}
}
}
if len(text) <= 0 {
return text, errors.New("AuthorSignature text is empty!")
}
// trim last semicolon
text = text[:len(text)-1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment