Skip to content

Commit ecde405

Browse files
committed
fix: URLSearchParams size
1 parent 682bac1 commit ecde405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gopeed-rest/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class Client {
226226
params.append('notStatus', taskStatus.toString());
227227
}
228228
}
229-
if (params.size === 0) {
229+
if (params.toString() === '') {
230230
return undefined;
231231
}
232232
return params;

0 commit comments

Comments
 (0)