Skip to content

Commit

Permalink
fix(lint): use fmt.Errorf instead
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <[email protected]>
  • Loading branch information
gleich committed Aug 7, 2024
1 parent 3d31152 commit 72410f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/apis/steam/games.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package steam

import (
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
Expand Down Expand Up @@ -64,7 +63,7 @@ func fetchRecentlyPlayedGames() ([]game, error) {
}
if resp.StatusCode != http.StatusOK {
lumber.ErrorMsg(resp.StatusCode, "when trying to get owned games", string(body))
return nil, errors.New(fmt.Sprintf("%d status code\n", resp.StatusCode))
return nil, fmt.Errorf("%d status code\n", resp.StatusCode)
}

var ownedGames ownedGamesResponse
Expand Down

0 comments on commit 72410f9

Please sign in to comment.