Remove debugging
This commit is contained in:
		| @@ -4,7 +4,6 @@ package userConfig | |||||||
| import ( | import ( | ||||||
| 	"bytes" | 	"bytes" | ||||||
| 	"errors" | 	"errors" | ||||||
| 	"fmt" |  | ||||||
| 	"io/ioutil" | 	"io/ioutil" | ||||||
| 	"strings" | 	"strings" | ||||||
|  |  | ||||||
| @@ -56,11 +55,9 @@ func (gf *GeneralConfig) Load() error { | |||||||
| func (gf *GeneralConfig) Save() error { | func (gf *GeneralConfig) Save() error { | ||||||
| 	buf := new(bytes.Buffer) | 	buf := new(bytes.Buffer) | ||||||
| 	cfgPath := gf.Path + "/" + gf.Name + ".conf" | 	cfgPath := gf.Path + "/" + gf.Name + ".conf" | ||||||
| 	fmt.Println("Writing Config File: " + cfgPath) |  | ||||||
| 	if err := toml.NewEncoder(buf).Encode(gf); err != nil { | 	if err := toml.NewEncoder(buf).Encode(gf); err != nil { | ||||||
| 		return err | 		return err | ||||||
| 	} | 	} | ||||||
| 	fmt.Println("Writing Config File: " + buf.String()) |  | ||||||
| 	return ioutil.WriteFile(cfgPath, buf.Bytes(), 0644) | 	return ioutil.WriteFile(cfgPath, buf.Bytes(), 0644) | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user