lint fix.

This commit is contained in:
Miroslav Šedivý 2021-01-08 22:41:37 +01:00
parent a6afccd079
commit fc6997d2ac
3 changed files with 5 additions and 5 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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
} }