Merge pull request #469 from praveentiru/pty/issue#256
Remove unused parameter in OpenOndisk #256
This commit is contained in:
commit
69175cb426
|
@ -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
|
||||
func OpenOndisk(parent *Config, path string) (*Config, error) {
|
||||
func OpenOndisk(path string) (*Config, error) {
|
||||
cpath := C.CString(path)
|
||||
defer C.free(unsafe.Pointer(cpath))
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ func setupConfig() (*Config, error) {
|
|||
err error
|
||||
)
|
||||
|
||||
c, err = OpenOndisk(nil, tempConfig)
|
||||
c, err = OpenOndisk(tempConfig)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue