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 5e4d982

Browse files
Write a fallback message when unable to fetch a problem statement.
1 parent 49069f5 commit 5e4d982

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎dist/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14654,7 +14654,7 @@ async function commit(params) {
1465414654
{
1465514655
path: path.normalize(questionPath),
1465614656
mode: "100644",
14657-
content: `${questionData}`,
14657+
content: questionData ?? "Unable to fetch the Problem statement.",
1465814658
},
1465914659
{
1466014660
path: path.normalize(solutionPath),

‎src/action.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ async function commit(params) {
165165
{
166166
path: path.normalize(questionPath),
167167
mode: "100644",
168-
content: `${questionData}`,
168+
content: questionData??"Unable to fetch the Problem statement.",
169169
},
170170
{
171171
path: path.normalize(solutionPath),

0 commit comments

Comments
(0)

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