Skip to content

Commit de4dab2

Browse files
authored
update and lint
Signed-off-by: GitHub <[email protected]>
1 parent 589ea1b commit de4dab2

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

backend/internal/nginx.js

+14-15
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,20 @@ const internalNginx = {
7878
/**
7979
* @returns {Promise}
8080
*/
81-
test: () => {
82-
if (process.env.ACME_OCSP_STAPLING === 'true') {
83-
return utils
84-
.execFile('certbot-ocsp-fetcher.sh', ['-c', '/data/tls/certbot', '-o', '/data/tls/certbot/live', '--no-reload-webserver', '--quiet'])
85-
.then(() => {
86-
return utils.execFile('nginx', ['-tq']);
87-
})
88-
.catch(() => {
89-
return utils.execFile('nginx', ['-tq']);
90-
});
91-
} else {
92-
return utils.execFile('nginx', ['-tq']);
93-
}
94-
},
95-
81+
test: () => {
82+
if (process.env.ACME_OCSP_STAPLING === 'true') {
83+
return utils
84+
.execFile('certbot-ocsp-fetcher.sh', ['-c', '/data/tls/certbot', '-o', '/data/tls/certbot/live', '--no-reload-webserver', '--quiet'])
85+
.then(() => {
86+
return utils.execFile('nginx', ['-tq']);
87+
})
88+
.catch(() => {
89+
return utils.execFile('nginx', ['-tq']);
90+
});
91+
} else {
92+
return utils.execFile('nginx', ['-tq']);
93+
}
94+
},
9695

9796
/**
9897
* @returns {Promise}

0 commit comments

Comments
 (0)