Skip to content

Commit 5f3464c

Browse files
author
Shuo
authored
Merge pull request #547 from openset/develop
Update: QuestionData
2 parents 2998d4d + d429a7c commit 5f3464c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/leetcode/question_data.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package leetcode
33
import (
44
"bytes"
55
"fmt"
6+
"log"
67
"os"
78
"path"
89
"regexp"
@@ -26,9 +27,9 @@ func QuestionData(titleSlug string, isForce bool) (qd questionDataType) {
2627
filename := fmt.Sprintf(questionDataFile, slugToSnake(titleSlug))
2728
graphQLRequest(filename, days, jsonStr, &qd)
2829
if qd.Data.Question.TitleSlug == "" {
29-
os.Remove(getCachePath(filename))
30+
_ = os.Remove(getCachePath(filename))
3031
for _, err := range qd.Errors {
31-
fmt.Println(titleSlug, err.Message)
32+
log.Println(titleSlug, err.Message)
3233
}
3334
}
3435
return

0 commit comments

Comments
 (0)