From fafcb994d8ceabb00895ac1887a20b06bfe138d2 Mon Sep 17 00:00:00 2001 From: lhchavez Date: Sat, 6 Feb 2021 05:58:22 -0800 Subject: [PATCH] Use the old API return type of `void` --- repository.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/repository.go b/repository.go index a6eb7f1..3113b3c 100644 --- a/repository.go +++ b/repository.go @@ -170,15 +170,9 @@ func (v *Repository) Config() (*Config, error) { // This configuration file will be used for all configuration queries involving // this repository. func (v *Repository) SetConfig(c *Config) error { - runtime.LockOSThread() - defer runtime.UnlockOSThread() - - ret := C.git_repository_set_config(v.ptr, c.ptr) + C.git_repository_set_config(v.ptr, c.ptr) runtime.KeepAlive(v) runtime.KeepAlive(c) - if ret < 0 { - return MakeGitError(ret) - } return nil }