mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
Fix typo (#1187)
This commit is contained in:
parent
a0b86e58f8
commit
5cdf8e26ba
1 changed files with 2 additions and 2 deletions
|
@ -334,10 +334,10 @@ var tryCmd = &cobra.Command{
|
||||||
Use: "try",
|
Use: "try",
|
||||||
Short: "Try and possibly fail at something",
|
Short: "Try and possibly fail at something",
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
err := someFunc()
|
if err := someFunc(); err != nil {
|
||||||
if err := nil {
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue