ci: correctly detect status 400 as failure in `get-commit-range` (#29839)

PR Close #29839
This commit is contained in:
George Kalpakas 2019-04-11 18:06:08 +03:00 committed by Igor Minar
parent ddadb8e22c
commit 6227d0bb3b
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ function getJson(url) {
const opts = {headers: {Accept: 'application/json'}};
const onResponse = res => {
const statusCode = res.statusCode || -1;
const isSuccess = (200 <= statusCode) && (statusCode <= 400);
const isSuccess = (200 <= statusCode) && (statusCode < 400);
let responseText = '';
res.