bugfix: fix linter warnings

This commit is contained in:
Settel 2024-02-18 10:24:40 +01:00
parent a5257506da
commit ca4dddec2e
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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")