mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
lint fix.
This commit is contained in:
parent
a6afccd079
commit
fc6997d2ac
@ -14,7 +14,7 @@ import (
|
|||||||
type key int
|
type key int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
keyMemberCtx key = iota
|
keyMemberCtx key = iota
|
||||||
)
|
)
|
||||||
|
|
||||||
type MembersHandler struct {
|
type MembersHandler struct {
|
||||||
|
@ -11,7 +11,7 @@ import (
|
|||||||
type key int
|
type key int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
keySessionCtx key = iota
|
keySessionCtx key = iota
|
||||||
)
|
)
|
||||||
|
|
||||||
func SetSession(r *http.Request, session types.Session) *http.Request {
|
func SetSession(r *http.Request, session types.Session) *http.Request {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package file
|
package file
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"fmt"
|
"fmt"
|
||||||
"sync"
|
"sync"
|
||||||
@ -101,7 +101,7 @@ func (manager *MembersDatabaseCtx) deserialize() (map[string]types.MemberProfile
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
raw, err := ioutil.ReadAll(file)
|
raw, err := ioutil.ReadAll(file)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user