Skip to content

Commit

Permalink
reduce code
Browse files Browse the repository at this point in the history
  • Loading branch information
bjohansebas committed Jan 7, 2025
1 parent 973c43d commit e7548fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/utils.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
const { request } = require('undici')

module.exports.request = async function (url, options) {
const res = await request(url, {
return request(url, {
...options,
headers: { 'User-Agent': 'node' }
})

return res
}

0 comments on commit e7548fb

Please sign in to comment.