Skip to content

Commit f198b9c

Browse files
committed
linting
1 parent b9e7cb7 commit f198b9c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const {
1414
populateHeaders
1515
} = require('./lib/utils')
1616

17-
function fastProxy(opts = {}) {
17+
function fastProxy (opts = {}) {
1818
const { request, close } = buildRequest({
1919
...opts
2020
})
@@ -24,7 +24,7 @@ function fastProxy(opts = {}) {
2424

2525
return {
2626
close,
27-
proxy(req, res, source, opts) {
27+
proxy (req, res, source, opts) {
2828
opts = opts || {}
2929
const reqOpts = opts.request || {}
3030
const onResponse = opts.onResponse
@@ -90,7 +90,7 @@ function fastProxy(opts = {}) {
9090
request(reqParams, (err, response) => {
9191
if (res.socket.destroyed || res.writableEnded) {
9292
return
93-
}
93+
}
9494

9595
if (err) {
9696
if (err.code === 'ECONNREFUSED') {
@@ -135,7 +135,7 @@ function fastProxy(opts = {}) {
135135
}
136136
}
137137

138-
function getQueryString(search, reqUrl, opts) {
138+
function getQueryString (search, reqUrl, opts) {
139139
if (opts.queryString) {
140140
return '?' + new URLSearchParams(opts.queryString).toString()
141141
}
@@ -152,23 +152,23 @@ function getQueryString(search, reqUrl, opts) {
152152
return ''
153153
}
154154

155-
function rewriteHeadersNoOp(headers) {
155+
function rewriteHeadersNoOp (headers) {
156156
return headers
157157
}
158158

159-
function rewriteRequestHeadersNoOp(req, headers) {
159+
function rewriteRequestHeadersNoOp (req, headers) {
160160
return headers
161161
}
162162

163-
function getCacheStorage(size) {
163+
function getCacheStorage (size) {
164164
if (size === 0) {
165165
return null
166166
}
167167

168168
return lru(size || 100)
169169
}
170170

171-
function getReqUrl(source, cache, base, opts) {
171+
function getReqUrl (source, cache, base, opts) {
172172
const reqBase = opts.base || base
173173
let url
174174

0 commit comments

Comments
 (0)