Skip to content

Commit

Permalink
Prefix unused parameters with _.
Browse files Browse the repository at this point in the history
Fixes #317 .
  • Loading branch information
jaydenseric committed Oct 24, 2023
1 parent f44feaf commit 5c21ed6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Expand Up @@ -4,6 +4,7 @@

### Patch

- Prefixed unused parameters with `_`, fixing [#317](https://github.com/jaydenseric/apollo-upload-client/issues/317).
- Fixed a typo in the changelog entry for v18.0.0.

## 18.0.0
Expand Down
2 changes: 1 addition & 1 deletion createUploadLink.mjs
Expand Up @@ -163,7 +163,7 @@ export default function createUploadLink({
form.append("map", JSON.stringify(map));

i = 0;
files.forEach((paths, file) => {
files.forEach((_paths, file) => {
customFormDataAppendFile(form, String(++i), file);
});

Expand Down
2 changes: 1 addition & 1 deletion test/timeLimitPromise.mjs
Expand Up @@ -35,7 +35,7 @@ export default async function timeLimitPromise(promise, msTimeLimit = 1000) {

return Promise.race([
promise,
new Promise((resolve, reject) => {
new Promise((_resolve, reject) => {
timeout = setTimeout(() => {
reject(error);
}, msTimeLimit);
Expand Down

0 comments on commit 5c21ed6

Please sign in to comment.