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 f75ed44

Browse files
authored
Merge pull request #59 from Darshan-AS/master
Fix error while committing a locked problem with an accepted solution.
2 parents 3d1ad76 + 5e4d982 commit f75ed44

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎.husky/pre-commit‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
npm run package
2-
git add .
2+
git add dist/index.js

‎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 によって変換されたページ (->オリジナル) /