8000 fix(useFetch): remove unnecessary spread operator in iterable convers… · vueuse/vueuse@f558739 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit f558739

Browse files
authored
fix(useFetch): remove unnecessary spread operator in iterable conversion (#3660)
1 parent b94de90 commit f558739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/useFetch/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function isAbsoluteURL(url: string) {
228228

229229
function headersToObject(headers: HeadersInit | undefined) {
230230
if (typeof Headers !== 'undefined' && headers instanceof Headers)
231-
return Object.fromEntries([...headers.entries()])
231+
return Object.fromEntries(headers.entries())
232232
return headers
233233
}
234234

0 commit comments

Comments
 (0)
0