fix: correct response status usage

This commit is contained in:
Nikita Nek Dudnik
2020-07-13 10:29:35 +02:00
parent 2fd5d2ffa5
commit 423ff518f9
@@ -47,11 +47,11 @@ export class GithubActionsClient implements GithubActionsApi {
}),
});
if (response.status > 200) {
if (!response.ok) {
return [
{
commitId: 'Error',
message: 'ResponseCode > 200',
message: 'Response status is not OK',
branch: 'Error',
status: BuildStatus.Failure,
uri: 'Error',
@@ -109,7 +109,7 @@ export class GithubActionsClient implements GithubActionsApi {
overviewUrl: '',
};
if (response.status > 200) {
if (!response.ok) {
return dataBlank;
}