From 6227d0bb3b46ec3a324e596269b054c326ead9b4 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Thu, 11 Apr 2019 18:06:08 +0300 Subject: [PATCH] ci: correctly detect status 400 as failure in `get-commit-range` (#29839) PR Close #29839 --- .circleci/get-commit-range.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/get-commit-range.js b/.circleci/get-commit-range.js index f8cd211213..75477105e7 100644 --- a/.circleci/get-commit-range.js +++ b/.circleci/get-commit-range.js @@ -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.