Skip to content

Commit d429a7c

Browse files
author
openset
committed
Update: QuestionData
1 parent 10ef77b commit d429a7c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/leetcode/question_data.go

+3-2
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)