libgit2 / git2go

Git to Go; bindings for libgit2. Like McDonald's but tastier.
MIT License
1.93k stars 315 forks source link

Some parts of the code use 'error' instead of 'err' #745

Closed mbfr closed 3 years ago

mbfr commented 3 years ago

This is a minor issue, but some of the code uses error instead of err which conflicts with the builtin error interface type, as well as not being in line with the Go style

mbfr commented 3 years ago

eg https://github.com/libgit2/git2go/blob/2fd0495c43c4a54a02e2bbfca886687621f83f9f/git.go#L203

suhaibmujahid commented 3 years ago

Thank you @mbfr for reporting this. I will open a PR to fix the variable names.