8000 Fixes `You have attempted to submit too soon` error. · Pyboon/leetcode-cli@8b7d55f · GitHub
[go: up one dir, main page]

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

Appearance settings

Commit 8b7d55f

Browse files
committed
Fixes You have attempted to submit too soon error.
Signed-off-by: Eric Wang <skygragon@gmail.com>
1 p
8000
arent 2eb97ec commit 8b7d55f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugins/leetcode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ function runCode(opts, problem, cb) {
178178
if (e) return cb(e);
179179

180180
if (body.error) {
181-
if (body.error.indexOf('run code too soon') < 0)
181+
if (body.error.indexOf('too soon') < 0)
182182
return cb(body.error);
183183

184184
// hit 'run code too soon' error, have to wait a bit

0 commit comments

Comments
 (0)
0