Merge pull request #469 from praveentiru/pty/issue#256

Remove unused parameter in OpenOndisk #256
This commit is contained in:
Carlos Martín Nieto 2019-01-02 22:33:10 +01:00 committed by GitHub
commit 69175cb426
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -344,7 +344,7 @@ func (c *Config) OpenLevel(parent *Config, level ConfigLevel) (*Config, error) {
} }
// OpenOndisk creates a new config instance containing a single on-disk file // OpenOndisk creates a new config instance containing a single on-disk file
func OpenOndisk(parent *Config, path string) (*Config, error) { func OpenOndisk(path string) (*Config, error) {
cpath := C.CString(path) cpath := C.CString(path)
defer C.free(unsafe.Pointer(cpath)) defer C.free(unsafe.Pointer(cpath))

View File

@ -13,7 +13,7 @@ func setupConfig() (*Config, error) {
err error err error
) )
c, err = OpenOndisk(nil, tempConfig) c, err = OpenOndisk(tempConfig)
if err != nil { if err != nil {
return nil, err return nil, err
} }