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

fix: shadowing original error
pull/894/head
Eugen Eisler 3 weeks ago committed by GitHub
commit 1bf8aa65c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 {

Loading…
Cancel
Save