bugfix: fix linter warnings
This commit is contained in:
parent
a5257506da
commit
ca4dddec2e
@ -37,5 +37,5 @@ type UserinfoJson struct {
|
||||
Name string `json:"name"`
|
||||
Role string `json:"role"`
|
||||
GameId string `json:"game"`
|
||||
IsCameo bool `json:"isCameo",omitempty`
|
||||
IsCameo bool `json:"isCameo,omitempty"`
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ func NewUserFromFile(fileName string) (*User, error) {
|
||||
// var usr User
|
||||
var userJson UserJson
|
||||
if err := json.Unmarshal(jsonBytes, &userJson); err != nil {
|
||||
return nil, fmt.Errorf("%s: %v\n", fileName, err)
|
||||
return nil, fmt.Errorf("%s: %v", fileName, err)
|
||||
} else {
|
||||
_, fileNameShort := path.Split(fileName)
|
||||
id := strings.TrimSuffix(fileNameShort, ".json")
|
||||
|
Loading…
Reference in New Issue
Block a user