summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Ezell <[email protected]>2014-03-20 20:24:29 -0700
committerJesse Ezell <[email protected]>2014-03-20 20:32:23 -0700
commit5d8db7f9362a314cf56747cf23605aec8640e92e (patch)
treef3ccf450fb7699b907c517cf4218bee70ce04333
parent99d7f66477aa09915821659087da8b91e593f4eb (diff)
return nil instead of empty array on error
-rw-r--r--remote.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote.go b/remote.go
index d675ab8..66097b8 100644
--- a/remote.go
+++ b/remote.go
@@ -136,7 +136,7 @@ func (repo *Repository) ListRemotes() ([]string, error) {
var r C.git_strarray
ecode := C.git_remote_list(&r, repo.ptr)
if ecode < 0 {
- return make([]string, 0), MakeGitError(ecode)
+ return nil, MakeGitError(ecode)
}
defer C.git_strarray_free(&r)