Skip to content

Commit

Permalink
fix: remove await keyword when call text method
Browse files Browse the repository at this point in the history
  • Loading branch information
alstn2468 committed Jan 16, 2024
1 parent 8e20cf6 commit 846f2fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/core/Ky.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class Ky {
try {
return response[type]();

Check failure on line 106 in source/core/Ky.ts

View workflow job for this annotation

GitHub Actions / Node.js 18

Returning an awaited promise is required in this context.
} catch {
return await response.text()
return response.text()

Check failure on line 108 in source/core/Ky.ts

View workflow job for this annotation

GitHub Actions / Node.js 18

Missing semicolon.
}
}

Expand Down

0 comments on commit 846f2fa

Please sign in to comment.