We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fdd082 commit 823f3fcCopy full SHA for 823f3fc
1 file changed
src/lib/util/utils.ts
@@ -153,16 +153,11 @@ export async function makeRequest(options: Options) {
153
throw new Error(`StatusCode: "${response.status}", ResponseBody: "${responseBody}."`)
154
}
155
156
- let res = responseBody
157
try {
158
- if (typeof responseBody.valueOf() === "string") {
159
- res = parseContent(options.url, responseBody)
160
- }
+ return parseContent(options.url, responseBody)
161
} catch (error) {
162
throw new Error(`An error occurred while parsing the file ${options.url}. The error is:\n ${util.inspect(error, { depth: null })}.`)
163
164
-
165
- return res
166
167
168
/*
0 commit comments