Nit: enclose the conditional block in braces and put the statement on the next line per Mozilla code conventions:

```
if (err) {
  return next(err, config);
}