Thanks to visit codestin.com Credit goes to github.com
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 e3f41e6 commit 157a1c2Copy full SHA for 157a1c2
src/index.ts
@@ -195,11 +195,7 @@ export default class IncludeFragmentElement extends HTMLElement {
195
}
196
197
async #getStringOrErrorData(): Promise<string | Error> {
198
- const data = await this.#getData()
199
- if (data instanceof Error) {
200
- return data
201
- }
202
- return data.toString()
+ return (await this.#getData()).toString()
203
204
205
// Functional stand in for the W3 spec "queue a task" paradigm
0 commit comments