Fix typo (#1187)
This commit is contained in:
parent
a0b86e58f8
commit
5cdf8e26ba
@ -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 New Issue
Block a user