refactor: remove useless warning (#44465)
parent
a2f799866f
commit
6ce8738fc0
|
@ -24,7 +24,7 @@
|
|||
"build:workers": "cross-env NODE_OPTIONS=\"--max-old-space-size=7168\" webpack --config ./webpack-workers.js",
|
||||
"clean": "gatsby clean",
|
||||
"predevelop": "tsc -p ../tools/ && node ../tools/scripts/build/ensure-env.js && npm run build:workers -- --env development",
|
||||
"develop": "cross-env NODE_OPTIONS=\"--max-old-space-size=4000\" gatsby develop --inspect=9230",
|
||||
"develop": "cross-env NODE_OPTIONS=\"--max-old-space-size=5000\" gatsby develop --inspect=9230",
|
||||
"lint": "node ./i18n/schema-validation.js",
|
||||
"serve": "gatsby serve -p 8000",
|
||||
"serve-ci": "serve -l 8000 -c ../serve.json public",
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue