diff options
| author | Ben Navetta <[email protected]> | 2014-08-25 17:41:35 -0400 |
|---|---|---|
| committer | Ben Navetta <[email protected]> | 2014-08-25 17:41:35 -0400 |
| commit | c8529e79da002e6c816c0df895edc7ce7a543a37 (patch) | |
| tree | f24f1d891efe0c4d5d1bc7a227e00eee14a7d822 /status.go | |
| parent | 1cb654e4f2ae536f71773dbe0bd808874b832d9c (diff) | |
don't return anything from StatusList.Free
Diffstat (limited to 'status.go')
| -rw-r--r-- | status.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) { |
