Skip to content

Commit 76f1b10

Browse files
authored
fix: filter falsy values before sending request (#1049)
1 parent ba6ecad commit 76f1b10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/commands/expire.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export class ExpireCommand extends Command<"0" | "1", 0 | 1> {
66
cmd: [key: string, seconds: number, option?: ExpireOptions],
77
opts?: CommandOptions<"0" | "1", 0 | 1>,
88
) {
9-
super(["expire", ...cmd], opts);
9+
super(["expire", ...cmd.filter(Boolean)], opts);
1010
}
1111
}

0 commit comments

Comments
 (0)