Skip to content

Commit

Permalink
Update draw.go
Browse files Browse the repository at this point in the history
  • Loading branch information
xyy0411 authored Oct 13, 2024
1 parent 61f64d1 commit b3be4ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/niuniu/draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ type drawer []drawUserRanking

func (allUsers drawer) drawRanking(t bool) (img image.Image, err error) {
fontbyte, err := file.GetLazyData(text.GlowSansFontFile, control.Md5File, true)
if err != nil {
return nil,err
}
var (
title string
s string
Expand All @@ -39,7 +42,7 @@ func (allUsers drawer) drawRanking(t bool) (img image.Image, err error) {
if err != nil {
return nil, err
}
_ = resp.Close
_ = resp.Body.Close()
ri[i] = &rendercard.RankInfo{
Avatar: decode,
TopLeftText: user.Name,
Expand Down

0 comments on commit b3be4ff

Please sign in to comment.