Browse Source

save returns true or false

Kieran Gibb 2 years ago
parent
commit
ed84d92e0e
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      index.js

+ 1
- 0
index.js View File

@@ -46,6 +46,7 @@ class CoBoxConfig {
46 46
       config.identities = this._identities
47 47
 
48 48
       fs.writeFileSync(this.storage, yaml.safeDump(config, { sortKeys: true }))
49
+      return true
49 50
     } catch (err) {
50 51
       console.error(err)
51 52
       return false