Browse Source

Disable bluebird warning wForgottenReturn

pull/6/head
Menci 6 years ago
parent
commit
6c169f69e9
  1. 7
      app.js

7
app.js

@ -16,6 +16,13 @@ require('reflect-metadata');
global.Promise = require('bluebird'); global.Promise = require('bluebird');
// Disable 'Warning: a promise was created in a handler at ...'
Promise.config({
warnings: {
wForgottenReturn: false
}
});
global.syzoj = { global.syzoj = {
rootDir: __dirname, rootDir: __dirname,
config: require('object-assign-deep')({}, require('./config-example.json'), require(options.config)), config: require('object-assign-deep')({}, require('./config-example.json'), require(options.config)),

Loading…
Cancel
Save