mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-04 20:16:24 -07:00
Fix anti-patterns pointed out by DeepSource
But not the switch fallthroughs/expression lists, there's no benefit
This commit is contained in:
parent
497a3925e0
commit
55317504a1
17 changed files with 53 additions and 67 deletions
|
@ -17,7 +17,7 @@ const (
|
|||
sOtherError
|
||||
)
|
||||
|
||||
func createSession(key string, username string, password string, request *http.Request, writer http.ResponseWriter) int {
|
||||
func createSession(key, username, password string, request *http.Request, writer http.ResponseWriter) int {
|
||||
//returns 0 for successful, 1 for password mismatch, and 2 for other
|
||||
domain := request.Host
|
||||
var err error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue