mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-10 07:10:31 +00:00
Merge pull request #872 from ALX99/fix-error-shadowing
fix: shadowing original error
This commit is contained in:
commit
1bf8aa65c1
@ -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)
|
// takes input from stdin if it exists, otherwise takes input from args (the last argument)
|
||||||
if hasStdin {
|
if hasStdin {
|
||||||
if message, err = readStdin(); err != nil {
|
if message, err = readStdin(); err != nil {
|
||||||
err = errors.New("error: could not read from stdin")
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else if len(args) > 0 {
|
} else if len(args) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user