Skip to content

Commit

Permalink
chore: changing return types now that signature context changed
Browse files Browse the repository at this point in the history
  • Loading branch information
pratik151192 committed Nov 2, 2023
1 parent e84f822 commit ae69470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/nodejs/rate-limiter/momento-rate-limiter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ export class MomentoRateLimiter extends AbstractRateLimiter {
);
}
}
return true;
return false;
}
} else if (resp instanceof CacheIncrement.Error) {
throw new Error(resp.message());
}

return false;
return true;
}
}

0 comments on commit ae69470

Please sign in to comment.