Skip to content

Commit de4d5fa

Browse files
committed
Fix condition
1 parent 78b03b4 commit de4d5fa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
React hook for conveniently use Fetch API.
88

9-
* **Tiny** (397 B). Calculated by [size-limit](https://github.com/ai/size-limit)
9+
* **Tiny** (408 B). Calculated by [size-limit](https://github.com/ai/size-limit)
1010
* Both **Flow** and **TypeScript** types included
1111

1212
```javascript

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"ignore": [
3131
"react"
3232
],
33-
"limit": "397 B",
33+
"limit": "408 B",
3434
"path": "index.js",
3535
"running": false
3636
}

utils/flattenInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function flattenInput () {
66
for (var j = 0; j < input.length; j++) {
77
res = res.concat(flattenInput(input[j]))
88
}
9-
} else if (typeof URL || "undefined" && input instanceof URL) {
9+
} else if (typeof URL !== "undefined" && input instanceof URL) {
1010
res = res.concat(input.toJSON())
1111
} else if (input instanceof Object) {
1212
var keys = Object.keys(input)

0 commit comments

Comments
 (0)