screwdriver-api 4.1.211 → 4.1.212

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "screwdriver-api",
3
- "version": "4.1.211",
3
+ "version": "4.1.212",
4
4
  "description": "API server for the Screwdriver.cd service",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
+ "pretest": "eslint . --quiet",
7
8
  "test": "nyc --report-dir ./artifacts/coverage --reporter=lcov mocha --reporter mocha-multi-reporters --reporter-options configFile=./mocha.config.json --recursive --timeout 10000 --retries 1 --exit --allow-uncaught true --color true",
8
9
  "start": "./bin/server",
9
10
  "debug": "node --nolazy ./bin/server",
@@ -135,7 +135,7 @@ module.exports = () => ({
135
135
  try {
136
136
  permissions = await user.getPermissions(scmUri);
137
137
  } catch (err) {
138
- if (err.statusCode === 403 && (pipeline.scmRepo && pipeline.scmRepo.private)) {
138
+ if (err.statusCode === 403 && pipeline.scmRepo && pipeline.scmRepo.private) {
139
139
  throw boom.notFound();
140
140
  }
141
141
  throw boom.boomify(err, { statusCode: err.statusCode });