diff options
author | 2021-08-08 13:39:15 +0530 | |
---|---|---|
committer | 2021-08-08 12:27:14 +0000 | |
commit | bd4f8048c1b73c25a96fb150f0ebc21361857147 (patch) | |
tree | 1e661bf9ffbec00dbce0c85f20622aad6b5a7bd2 | |
parent | 5.6.1-nightly.18 [skip ci] (diff) | |
download | ferdium-app-bd4f8048c1b73c25a96fb150f0ebc21361857147.tar.gz ferdium-app-bd4f8048c1b73c25a96fb150f0ebc21361857147.tar.zst ferdium-app-bd4f8048c1b73c25a96fb150f0ebc21361857147.zip |
refactor: reuse method that was previously defined.
-rw-r--r-- | src/electron/Settings.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/electron/Settings.js b/src/electron/Settings.js index 4dd9f8245..3e11bb175 100644 --- a/src/electron/Settings.js +++ b/src/electron/Settings.js | |||
@@ -45,14 +45,14 @@ export default class Settings { | |||
45 | 45 | ||
46 | _hydrate() { | 46 | _hydrate() { |
47 | this.store = this._merge(readJsonSync(this.settingsFile)); | 47 | this.store = this._merge(readJsonSync(this.settingsFile)); |
48 | debug('Hydrate store', this.type, toJS(this.store)); | 48 | debug('Hydrate store', this.type, this.allSerialized); |
49 | } | 49 | } |
50 | 50 | ||
51 | _writeFile() { | 51 | _writeFile() { |
52 | outputJsonSync(this.settingsFile, this.store, { | 52 | outputJsonSync(this.settingsFile, this.store, { |
53 | spaces: 2, | 53 | spaces: 2, |
54 | }); | 54 | }); |
55 | debug('Write settings file', this.type, toJS(this.store)); | 55 | debug('Write settings file', this.type, this.allSerialized); |
56 | } | 56 | } |
57 | 57 | ||
58 | get settingsFile() { | 58 | get settingsFile() { |