summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
authorSuhaib Mujahid <[email protected]>2021-02-15 10:26:19 -0500
committerGitHub <[email protected]>2021-02-15 07:26:19 -0800
commitf6c5753df885e8511cf7d6437ee10e81c91a9651 (patch)
tree96b405821af195034ac5ed86e6b56e58ef9a2cfd /git.go
parent2fd0495c43c4a54a02e2bbfca886687621f83f9f (diff)
fix: Use `err` instead of error as a variable name for errors (#746)
fix #745
Diffstat (limited to 'git.go')
-rw-r--r--git.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/git.go b/git.go
index cdcf6bb..d672d77 100644
--- a/git.go
+++ b/git.go
@@ -200,9 +200,9 @@ func NewOid(s string) (*Oid, error) {
o := new(Oid)
- slice, error := hex.DecodeString(s)
- if error != nil {
- return nil, error
+ slice, err := hex.DecodeString(s)
+ if err != nil {
+ return nil, err
}
if len(slice) != 20 {