diff options
author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2019-10-24 23:33:57 +0300 |
---|---|---|
committer | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2019-10-24 23:37:27 +0300 |
commit | 81627ab53e269a762b769b47c004cb4309452492 (patch) | |
tree | cc7274d6f63f02112d407f9d0da5ddbc5ea2eaa1 /_examples/merge_base/helpers.go | |
parent | aac20cc0e86f9f563bc74c42e9b9c598dfe271da (diff) | |
download | go-git-81627ab53e269a762b769b47c004cb4309452492.tar.gz |
Fix typos in comments, variables and function names
Signed-off-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
Diffstat (limited to '_examples/merge_base/helpers.go')
-rw-r--r-- | _examples/merge_base/helpers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/_examples/merge_base/helpers.go b/_examples/merge_base/helpers.go index b7b1ed6..179a817 100644 --- a/_examples/merge_base/helpers.go +++ b/_examples/merge_base/helpers.go @@ -13,7 +13,7 @@ func checkIfError(err error, code exitCode, mainReason string, v ...interface{}) return } - printErr(wrappErr(err, mainReason, v...)) + printErr(wrapErr(err, mainReason, v...)) os.Exit(int(code)) } @@ -52,7 +52,7 @@ func printCommits(commits []*object.Commit) { } } -func wrappErr(err error, s string, v ...interface{}) error { +func wrapErr(err error, s string, v ...interface{}) error { if err != nil { return fmt.Errorf("%s\n %s", fmt.Sprintf(s, v...), err) } |