diff --git a/lib/rest/request.js b/lib/rest/request.js index f9b861b..2bb23fc 100644 --- a/lib/rest/request.js +++ b/lib/rest/request.js @@ -33,7 +33,7 @@ export function Request(config) { json: true }; - if (typeof (params) != 'undefined') { + if (params) { if (params.hasOwnProperty('is_call_insights_request')) { options.url = params.call_insights_base_url + params.call_insights_request_path; delete params.is_call_insights_request;