Use the old API return type of `void`

This commit is contained in:
lhchavez 2021-02-06 05:58:22 -08:00
parent c69f73e64b
commit fafcb994d8
1 changed files with 1 additions and 7 deletions

View File

@ -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
}