Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7245baf

Browse files
Update action.js
1 parent a56ec99 commit 7245baf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/action.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ async function commit(params) {
5454
const name = normalizeName(submission.title);
5555
log(`Committing solution for ${name}...`);
5656

57-
// if (!LANG_TO_EXTENSION[submission.lang]) {
58-
// throw `Language ${submission.lang} does not have a registered extension.`;
59-
// }
57+
if (!LANG_TO_EXTENSION[submission.lang]) {
58+
throw `Language ${submission.lang} does not have a registered extension.`;
59+
}
6060

6161
const prefix = !!destinationFolder ? `${destinationFolder}/` : '';
6262
const path = `${prefix}problems/${name}/solution.${LANG_TO_EXTENSION[submission.lang]}`

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /