mirror of
https://github.com/scratchfoundation/scratch-l10n.git
synced 2024-12-22 21:52:35 -05:00
fix: remove unnecessary if statement
This commit is contained in:
parent
d6f1224931
commit
34fcab3ce0
1 changed files with 9 additions and 11 deletions
|
@ -84,17 +84,15 @@ const pushSource = async function () {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// file not found - create it, but also give message
|
// file not found - create it, but also give message
|
||||||
if (err.statusCode === 404) {
|
process.stdout.write(`Transifex Resource not found, creating: ${RESOURCE}\n`);
|
||||||
process.stdout.write(`Transifex Resource not found, creating: ${RESOURCE}\n`);
|
const resourceData = {
|
||||||
const resourceData = {
|
slug: RESOURCE,
|
||||||
slug: RESOURCE,
|
name: RESOURCE,
|
||||||
name: RESOURCE,
|
priority: 0, // default to normal priority
|
||||||
priority: 0, // default to normal priority
|
i18nType: getResourceType(PROJECT, RESOURCE),
|
||||||
i18nType: getResourceType(PROJECT, RESOURCE),
|
content: en
|
||||||
content: en
|
};
|
||||||
};
|
await txCreateResource(PROJECT, resourceData);
|
||||||
await txCreateResource(PROJECT, resourceData);
|
|
||||||
}
|
|
||||||
process.exitCode = 0;
|
process.exitCode = 0;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue