refactor: remove useless warning (#44465)

This commit is contained in:
Oliver Eyton-Williams
2021-12-10 23:35:46 +01:00
committed by GitHub
parent a2f799866f
commit 6ce8738fc0
2 changed files with 2 additions and 4 deletions

View File

@ -17,9 +17,7 @@ exports.translateComments = (text, lang, dict, codeLang) => {
exports.translateCommentsInChallenge = (challenge, lang, dict) => {
const challClone = cloneDeep(challenge);
if (!challClone.challengeFiles) {
console.warn(`Challenge ${challClone.title} has no seed to translate`);
} else {
if (challClone?.challengeFiles) {
challClone.challengeFiles.forEach(challengeFile => {
if (challengeFile.contents) {
let { text, commentCounts } = this.translateComments(