Skip to content

Commit

Permalink
feat(config): Provide a default empty object for preprocessor_priority
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjbarton committed Aug 13, 2019
1 parent ab89042 commit bae1e3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ class Config {
this.proxies = {}
this.proxyValidateSSL = true
this.preprocessors = {}
this.preprocessor_priority = {}
this.urlRoot = '/'
this.upstreamProxy = undefined
this.reportSlowerThan = 0
Expand Down
1 change: 0 additions & 1 deletion lib/preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ function createPreprocessor (config, preprocessorPriority, basePath, injector) {
const alreadyDisplayedErrors = {}
const instances = {}
let patterns = Object.keys(config)
preprocessorPriority = preprocessorPriority || {}

function instantiatePreprocessor (name) {
if (alreadyDisplayedErrors[name]) {
Expand Down

0 comments on commit bae1e3d

Please sign in to comment.