Skip to content

Commit 7819da2

Browse files
author
openset
committed
Fixed: bugs
1 parent 289d843 commit 7819da2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/leetcode/login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func AccountsLogin(username, password string) (*http.Response, error) {
1717
"password": {password},
1818
"csrfmiddlewaretoken": {csrftoken},
1919
}
20-
http.PostForm(accountsLoginUrl, data)
20+
resp, err = http.PostForm(accountsLoginUrl, data)
2121
checkErr(err)
2222
defer resp.Body.Close()
2323
saveCookies(resp.Cookies())

internal/leetcode/question_data.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func (question questionType) saveCodeContent(content, ext string, permX ...bool)
229229
filePath := question.getFilePath(question.TitleSnake() + ext)
230230
filePutContents(filePath, []byte(content))
231231
if len(permX) > 0 && permX[0] == true {
232-
os.Chmod(filePath, 0755)
232+
_ = os.Chmod(filePath, 0755)
233233
}
234234
}
235235

0 commit comments

Comments
 (0)