Skip to content

Commit 9fee9a7

Browse files
author
Openset
committed
Update: graphQLRequest
1 parent 276b26c commit 9fee9a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: internal/leetcode/base.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ func graphQLRequest(filename string, days int, jsonStr string, v interface{}) {
2828
data := remember(filename, days, func() []byte {
2929
return client.PostJson(graphqlUrl, jsonStr)
3030
})
31-
err := json.Unmarshal(data, &v)
32-
checkErr(err)
33-
return
31+
jsonDecode(data, &v)
3432
}
3533

3634
func remember(filename string, days int, f func() []byte) []byte {

0 commit comments

Comments
 (0)