Skip to content

Commit

Permalink
style: remove trailing whitespace (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Nov 3, 2024
1 parent b950e70 commit d0ee7d8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ Busboy methods

* **Busboy expected an options-Object with headers-attribute.** - The first parameter is lacking of a headers-attribute.

* **Limit $limit is not a valid number** - Busboy expected the desired limit to be of type number. Busboy throws this Error to prevent a potential security issue by falling silently back to the Busboy-defaults. Potential source for this Error can be the direct use of environment variables without transforming them to the type number.
* **Limit $limit is not a valid number** - Busboy expected the desired limit to be of type number. Busboy throws this Error to prevent a potential security issue by falling silently back to the Busboy-defaults. Potential source for this Error can be the direct use of environment variables without transforming them to the type number.

* **Unsupported Content-Type.** - The `Content-Type` isn't one Busboy can parse.

Expand Down
6 changes: 3 additions & 3 deletions lib/main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ export interface BusboyConfig {
defCharset?: string | undefined;
/**
* Detect if a Part is a file.
*
* By default a file is detected if contentType
*
* By default a file is detected if contentType
* is application/octet-stream or fileName is not
* undefined.
*
*
* Modify this to handle e.g. Blobs.
*/
isPartAFile?: (fieldName: string | undefined, contentType: string | undefined, fileName: string | undefined) => boolean;
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/nested-full/part2.header
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{"content-disposition": ["form-data; name=\"files\""],
{"content-disposition": ["form-data; name=\"files\""],
"content-type": ["multipart/mixed, boundary=BbC04y"]}
2 changes: 1 addition & 1 deletion test/fixtures/nested/part2.header
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{"content-disposition": ["form-data; name=\"files\""],
{"content-disposition": ["form-data; name=\"files\""],
"content-type": ["multipart/mixed, boundary=BbC04y"]}

0 comments on commit d0ee7d8

Please sign in to comment.