Skip to content

Commit

Permalink
make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiang-Red committed Oct 11, 2024
1 parent 1da3061 commit 1ecb6d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rank.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ func DrawRankingCard(fontdata []byte, title string, toplefttext, bottomlefttext,
}

canvas.SetRGBA255(0, 0, 0, 255)
canvas.ParseFontFace(fontdata, 32)
err = canvas.ParseFontFace(fontdata, 32)
if err != nil {
return
}
canvas.DrawStringAnchored(title, w/2, 64/2, 0.5, 0.5)

err = canvas.ParseFontFace(fontdata, 20)
Expand Down

0 comments on commit 1ecb6d0

Please sign in to comment.