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 4, 2023
1 parent 2bf265a commit d1f6131
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/chess/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,10 @@ func getBoardElement(groupCode int64) (imgMsg message.MessageSegment, err error)
mark := cimage.MarkSquares(yellow, highlightSquare...)
board := pos.Board()
fromBlack := cimage.Perspective(gameTurn)
cimage.SVG(buf, board, fromBlack, mark)
err = cimage.SVG(buf, board, fromBlack, mark)
if err != nil {
return
}

worker, err := resvg.NewDefaultWorker(context.Background())
if err != nil {
Expand Down

0 comments on commit d1f6131

Please sign in to comment.