aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-08 13:39:15 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-08 12:27:14 +0000
commitbd4f8048c1b73c25a96fb150f0ebc21361857147 (patch)
tree1e661bf9ffbec00dbce0c85f20622aad6b5a7bd2 /src
parent5.6.1-nightly.18 [skip ci] (diff)
downloadferdium-app-bd4f8048c1b73c25a96fb150f0ebc21361857147.tar.gz
ferdium-app-bd4f8048c1b73c25a96fb150f0ebc21361857147.tar.zst
ferdium-app-bd4f8048c1b73c25a96fb150f0ebc21361857147.zip
refactor: reuse method that was previously defined.
Diffstat (limited to 'src')
-rw-r--r--src/electron/Settings.js4
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() {