summaryrefslogtreecommitdiff
path: root/git.go
diff options
context:
space:
mode:
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 {