diff options
| author | Carlos MartÃn Nieto <[email protected]> | 2019-01-02 22:33:10 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-01-02 22:33:10 +0100 |
| commit | 69175cb426cdb267609b6ede866abf4cc5e86504 (patch) | |
| tree | 80e6ced86fc88ae3335903739b381ae132b389ba | |
| parent | 8b368063e958f421ca973b49fb71a092b696cf92 (diff) | |
| parent | e0ad45065e7ae240cba5fa0a3cbe5c2ee1df85f7 (diff) | |
Merge pull request #469 from praveentiru/pty/issue#256
Remove unused parameter in OpenOndisk #256
| -rw-r--r-- | config.go | 2 | ||||
| -rw-r--r-- | config_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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)) diff --git a/config_test.go b/config_test.go index 196d4ad..398236e 100644 --- a/config_test.go +++ b/config_test.go @@ -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 } |
