Skip to content

Commit f038e77

Browse files
LuisEGRdougwilson
authored andcommitted
lint: remove unused function parameters
closes #245
1 parent 513cda2 commit f038e77

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/index.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@
163163
if (method === 'OPTIONS') {
164164
// preflight
165165
headers.push(configureOrigin(options, req));
166-
headers.push(configureCredentials(options, req));
167-
headers.push(configureMethods(options, req));
166+
headers.push(configureCredentials(options))
167+
headers.push(configureMethods(options))
168168
headers.push(configureAllowedHeaders(options, req));
169-
headers.push(configureMaxAge(options, req));
170-
headers.push(configureExposedHeaders(options, req));
169+
headers.push(configureMaxAge(options))
170+
headers.push(configureExposedHeaders(options))
171171
applyHeaders(headers, res);
172172

173173
if (options.preflightContinue) {
@@ -182,8 +182,8 @@
182182
} else {
183183
// actual response
184184
headers.push(configureOrigin(options, req));
185-
headers.push(configureCredentials(options, req));
186-
headers.push(configureExposedHeaders(options, req));
185+
headers.push(configureCredentials(options))
186+
headers.push(configureExposedHeaders(options))
187187
applyHeaders(headers, res);
188188
next();
189189
}

0 commit comments

Comments
 (0)