Skip to content

Commit

Permalink
Merge pull request #10 from susumuota/fix-typo
Browse files Browse the repository at this point in the history
fix: typo.
  • Loading branch information
susumuota committed Apr 2, 2023
2 parents e8c9913 + 28ea304 commit 9a6fdc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nip26.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type Delegation = {
};

const createDelegation = (privateKey: string, parameters: Parameters) => {
let conditions = [];
const conditions = [] as string[];
if ((parameters.kind || -1) >= 0) conditions.push(`kind=${parameters.kind}`);
if (parameters.until) conditions.push(`created_at<${parameters.until}`);
if (parameters.since) conditions.push(`created_at>${parameters.since}`);
Expand Down

0 comments on commit 9a6fdc8

Please sign in to comment.