summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'init.go')
-rw-r--r--init.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.go b/init.go
index 0f0a3e7..35c6aa4 100644
--- a/init.go
+++ b/init.go
@@ -60,7 +60,7 @@ func New() *TreeInfo {
}
func (t *TreeInfo) ConfigFind(n string) (string, error) {
- all := t.config.All() // get the list of repos
+ all := t.config.All()
for all.Scan() {
r := all.Next()
if t.PluginName != r.Plugin {
@@ -76,7 +76,7 @@ func (t *TreeInfo) ConfigFind(n string) (string, error) {
func (t *TreeInfo) ConfigSave(newopt *ToolkitConfig) {
t.configInsert(newopt)
- config.ConfigSave(t.config)
+ config.Save(t.config)
}
// update the config option value (or append if new record)