From 5cdf8e26ba7046dd743463f60102ab52602c6428 Mon Sep 17 00:00:00 2001 From: Michael Samoylov Date: Tue, 11 Aug 2020 15:39:51 +0300 Subject: [PATCH] Fix typo (#1187) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9637c93..53d174c 100644 --- a/README.md +++ b/README.md @@ -334,10 +334,10 @@ var tryCmd = &cobra.Command{ Use: "try", Short: "Try and possibly fail at something", RunE: func(cmd *cobra.Command, args []string) error { - err := someFunc() - if err := nil { + if err := someFunc(); err != nil { return err } + return nil }, } ```