Merge pull request #872 from ALX99/fix-error-shadowing

fix: shadowing original error
This commit is contained in:
Eugen Eisler 2024-08-29 18:56:21 +02:00 committed by GitHub
commit 1bf8aa65c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,7 +56,6 @@ func Init() (ret *Flags, err error) {
// takes input from stdin if it exists, otherwise takes input from args (the last argument)
if hasStdin {
if message, err = readStdin(); err != nil {
err = errors.New("error: could not read from stdin")
return
}
} else if len(args) > 0 {