Skip to content

Commit 6a4baa9

Browse files
committed
comments
1 parent a49fd52 commit 6a4baa9

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

lib/api_client.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ ApiClient.request = function (options, fnCallback) {
8888
if (e) {
8989
logger.error("Error while Api call", e);
9090
} else if (response.statusCode === 200) {
91+
// use try-catch Error possible due to json parse of non-parseable
9192
try {
9293
body = JSON.parse(body);
9394
logger.info("Api response json :", body);

lib/api_client_v2.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const axios = require('axios');
2-
// const { version, appVersion, baseUrl, baseUrlApp } = require("./config");
32
const packageVersion = require("../package.json").version;
43
let logger;
54

0 commit comments

Comments
 (0)