Use for-of instead of forEach (#3583)

Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
This commit is contained in:
Aya Morisawa
2018-12-11 20:36:55 +09:00
committed by GitHub
parent 30c53e9ee0
commit 125849673a
84 changed files with 345 additions and 283 deletions

View File

@@ -91,9 +91,9 @@ app.use(mount(require('./web')));
function createServer() {
if (config.https) {
const certs: any = {};
Object.keys(config.https).forEach(k => {
for (const k of Object.keys(config.https)) {
certs[k] = fs.readFileSync(config.https[k]);
});
}
certs['allowHTTP1'] = true;
return http2.createSecureServer(certs, app.callback());
} else {