Browse Source

dont pass opts to options to save

Kieran Gibb 2 years ago
parent
commit
6bb6a40d32
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      index.js

+ 2
- 2
index.js View File

@@ -37,7 +37,7 @@ class CoBoxConfig {
37 37
     var config = Object.assign(defaultConfig(this._opts))
38 38
 
39 39
     if (!fs.existsSync(this.storage)) {
40
-      fs.writeFileSync(this.storage, yaml.safeDump(defaultConfig(this._opts), { sortKeys: true }))
40
+      fs.writeFileSync(this.storage, yaml.safeDump(defaultConfig(), { sortKeys: true }))
41 41
       this._groups = config.groups
42 42
       this._replicators = config.replicators
43 43
       this._identities = config.identities
@@ -65,7 +65,7 @@ class CoBoxConfig {
65 65
 
66 66
   save () {
67 67
     try {
68
-      var config = defaultConfig(this._opts)
68
+      var config = defaultConfig()
69 69
       config.groups = this._groups
70 70
       config.replicators = this._replicators
71 71
       config.identities = this._identities