diff --git a/pkg/commands/expire.ts b/pkg/commands/expire.ts index 93dca034..04aad8f4 100644 --- a/pkg/commands/expire.ts +++ b/pkg/commands/expire.ts @@ -6,6 +6,6 @@ export class ExpireCommand extends Command<"0" | "1", 0 | 1> { cmd: [key: string, seconds: number, option?: ExpireOptions], opts?: CommandOptions<"0" | "1", 0 | 1>, ) { - super(["expire", ...cmd], opts); + super(["expire", ...cmd.filter(Boolean)], opts); } }