Skip to content

Commit 1499c79

Browse files
committed
imp(): remove redundant condition
1 parent eab9094 commit 1499c79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

workers/limiter/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export default class LimiterWorker extends Worker {
205205
/**
206206
* If workspace is not blocked yet and it should be blocked by quota - then block it
207207
*/
208-
if (!workspace.isBlocked && shouldBeBlockedByQuota) {
208+
if (shouldBeBlockedByQuota) {
209209
const projectIds = projectsToUpdate.map(project => project._id.toString());
210210

211211
this.redis.appendBannedProjects(projectIds);

0 commit comments

Comments
 (0)