summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Navetta <[email protected]>2014-08-25 17:41:35 -0400
committerBen Navetta <[email protected]>2014-08-25 17:41:35 -0400
commitc8529e79da002e6c816c0df895edc7ce7a543a37 (patch)
treef24f1d891efe0c4d5d1bc7a227e00eee14a7d822
parent1cb654e4f2ae536f71773dbe0bd808874b832d9c (diff)
don't return anything from StatusList.Free
-rw-r--r--status.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/status.go b/status.go
index 4523cb8..efe6eb0 100644
--- a/status.go
+++ b/status.go
@@ -61,14 +61,13 @@ func newStatusListFromC(ptr *C.git_status_list) *StatusList {
return statusList
}
-func (statusList *StatusList) Free() error {
+func (statusList *StatusList) Free() {
if statusList.ptr == nil {
- return ErrInvalid
+ return
}
runtime.SetFinalizer(statusList, nil)
C.git_status_list_free(statusList.ptr)
statusList.ptr = nil
- return nil
}
func (statusList *StatusList) ByIndex(index int) (StatusEntry, error) {