Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6007ed4

Browse files
committed
refactor: drop useless Promise.resolve
1 parent 936abae commit 6007ed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export default class IncludeFragmentElement extends HTMLElement {
166166
})
167167
.then(data => {
168168
fire('load', this).then(() => fire('loadend', this))
169-
return Promise.resolve(data)
169+
return data
170170
}, error => {
171171
fire('error', this).then(() => fire('loadend', this))
172172
throw error

0 commit comments

Comments
 (0)