Skip to content
This repository was archived by the owner on Jan 3, 2020. It is now read-only.

Commit bf2006e

Browse files
committed
fixed critical error
1 parent 8972366 commit bf2006e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jira-api-wrapper",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"license": "MIT",
55
"author": "Vladislav Tupikin <mrrefactoring@yandex.ru>",
66
"description": "Wrapper of jira api for nodejs and typescript",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class JiraApi implements IJiraApi {
243243

244244
if (callback) {
245245
request(options, (error: any, response: any, body: any) => {
246-
if (error || response.statusCode.toString()[0] !== '2' || response.statusCode.toString()[0] !== '3') {
246+
if (error || (response.statusCode.toString()[0] !== '2' && response.statusCode.toString()[0] !== '3')) {
247247
return callback(error ? error : body, null, response);
248248
}
249249

0 commit comments

Comments
 (0)