Skip to content

Commit 2b41dc7

Browse files
fix: Prettify code
1 parent f4340fc commit 2b41dc7

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed

src/datastore/DataStore.ts

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,18 @@ const DEFAULT_NGINX_CAPTAIN_CONFIG = fs
3030
.readFileSync(__dirname + '/../../template/root-nginx-conf.ejs')
3131
.toString()
3232

33-
let DEFAULT_NGINX_CONFIG_FOR_APP_PATH = __dirname + '/../../template/server-block-conf.ejs'
33+
let DEFAULT_NGINX_CONFIG_FOR_APP_PATH =
34+
__dirname + '/../../template/server-block-conf.ejs'
3435

3536
if (fs.pathExistsSync('/captain/data/server-block-conf-override.ejs')) {
36-
DEFAULT_NGINX_CONFIG_FOR_APP_PATH = '/captain/data/server-block-conf-override.ejs'
37+
DEFAULT_NGINX_CONFIG_FOR_APP_PATH =
38+
'/captain/data/server-block-conf-override.ejs'
3739
}
3840

3941
const DEFAULT_NGINX_CONFIG_FOR_APP = fs
4042
.readFileSync(DEFAULT_NGINX_CONFIG_FOR_APP_PATH)
4143
.toString()
4244

43-
4445
class DataStore {
4546
private encryptor: CaptainEncryptor
4647
private namespace: string
@@ -89,27 +90,27 @@ class DataStore {
8990
}
9091

9192
/*
92-
"smtp": {
93-
"to": "",
94-
"hostname": "",
95-
"server": "",
96-
"port": "",
97-
"allowNonTls": false,
98-
"password": "",
99-
"username": ""
100-
},
101-
"slack": {
102-
"hook": "",
103-
"channel": ""
104-
},
105-
"telegram": {
106-
"botToken": "",
107-
"chatId": ""
108-
},
109-
"pushBullet": {
110-
"fallbackEmail": "",
111-
"apiToken": ""
112-
}
93+
"smtp": {
94+
"to": "",
95+
"hostname": "",
96+
"server": "",
97+
"port": "",
98+
"allowNonTls": false,
99+
"password": "",
100+
"username": ""
101+
},
102+
"slack": {
103+
"hook": "",
104+
"channel": ""
105+
},
106+
"telegram": {
107+
"botToken": "",
108+
"chatId": ""
109+
},
110+
"pushBullet": {
111+
"fallbackEmail": "",
112+
"apiToken": ""
113+
}
113114
*/
114115
getNetDataInfo() {
115116
const self = this

0 commit comments

Comments
 (0)