Skip to content

Conversation

@jmgasper
Copy link
Contributor

@jmgasper jmgasper merged commit 7ed9d4b into develop Nov 12, 2025
4 checks passed
});

if (dependentOpenPhases.length === 0) {
const normalizedPhaseName = normalizePhaseName(phaseName);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[💡 performance]
The normalizePhaseName function is called twice for each phase in openPhases when checking hasSubmissionVariantOpen. Consider normalizing phase?.name once before the some method to improve performance slightly.

})

try {
const challengePhase = await service.partiallyUpdateChallengePhase(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
The try block is missing a catch clause. If service.partiallyUpdateChallengePhase throws an error, it will be silently ignored, which could lead to undetected test failures.

})

try {
await service.partiallyUpdateChallengePhase(authUser, data.challenge.id, data.challengePhase1Id, {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
The try block is missing a catch clause. If service.partiallyUpdateChallengePhase throws an error, it will be silently ignored, which could lead to undetected test failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants