aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/config/config.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go
index 63c10213d..5af99ba0f 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -36,13 +36,9 @@ func LoadData(data []byte, cfg interface{}) error {
}
func SaveFile(filename string, cfg interface{}) error {
- data, err := SaveData(cfg)
+ data, err := json.MarshalIndent(cfg, "", "\t")
if err != nil {
return err
}
return osutil.WriteFile(filename, data)
}
-
-func SaveData(cfg interface{}) ([]byte, error) {
- return json.MarshalIndent(cfg, "", "\t")
-}