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
const (
keyMemberCtx key = iota
keyMemberCtx key = iota
)
type MembersHandler struct {

View File

@ -11,7 +11,7 @@ import (
type key int
const (
keySessionCtx key = iota
keySessionCtx key = iota
)
func SetSession(r *http.Request, session types.Session) *http.Request {

View File

@ -1,8 +1,8 @@
package file
import (
"encoding/json"
"io/ioutil"
"encoding/json"
"io/ioutil"
"os"
"fmt"
"sync"
@ -101,7 +101,7 @@ func (manager *MembersDatabaseCtx) deserialize() (map[string]types.MemberProfile
return nil, err
}
raw, err := ioutil.ReadAll(file)
raw, err := ioutil.ReadAll(file)
if err != nil {
return nil, err
}