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

Sign up
Appearance settings

Commit 07b721b

Browse files
author
Shuo
authored
Merge pull request #555 from openset/develop
Fixed: bugs
2 parents 87a0157 + 7819da2 commit 07b721b

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)

AltStyle によって変換されたページ (->オリジナル) /