Error strings should not be capitalized
Reported by staticcheck 2022.1.2 (v0.3.2) See: staticcheck.io
This commit is contained in:
parent
027746ef6e
commit
fdd2f8e6d2
65 changed files with 159 additions and 159 deletions
2
backend/cache/plex.go
vendored
2
backend/cache/plex.go
vendored
|
@ -213,7 +213,7 @@ func (p *plexConnector) authenticate() error {
|
|||
var data map[string]interface{}
|
||||
err = json.NewDecoder(resp.Body).Decode(&data)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to obtain token: %v", err)
|
||||
return fmt.Errorf("failed to obtain token: %w", err)
|
||||
}
|
||||
tokenGen, ok := get(data, "user", "authToken")
|
||||
if !ok {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue