Skip to content

Commit b3268ef

Browse files
committed
docs: language fixes
1 parent 86c52ba commit b3268ef

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,10 @@ HTTPSnippet.prototype.prepare = function (request) {
118118
//
119119
// Since the native FormData object is iterable, we easily detect what version of `form-data` we're working
120120
// with here to allow `multipart/form-data` requests to be compiled under both browser and Node environments.
121-
// This hack sucks yeah, but it's the only way we can use this library in the browser as if we code this against
122-
// just the native FormData object, we can't polyfill it back into Node because Blob and File objects, which
123-
// something like `formdata-polyfill` requires, don't exist there.
121+
//
122+
// This hack is pretty awful but it's the only way we can use this library in the browser as if we code this
123+
// against just the native FormData object, we can't polyfill that back into Node because Blob and File objects,
124+
// which something like `formdata-polyfill` requires, don't exist there.
124125
const isNativeFormData = (typeof form[Symbol.iterator] === 'function');
125126

126127
// easter egg

0 commit comments

Comments
 (0)