mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-02 22:14:29 +01:00
examples/dropfile: bug fix: go vet failed
This commit is contained in:
parent
8c25fac860
commit
e03cb0d4df
@ -29,7 +29,9 @@ type Game struct {
|
|||||||
func (g *Game) Update() error {
|
func (g *Game) Update() error {
|
||||||
for _, f := range ebiten.AppendDroppedFiles(nil) {
|
for _, f := range ebiten.AppendDroppedFiles(nil) {
|
||||||
// Calling Close is not mandatory, but it is sligtly good to save memory.
|
// Calling Close is not mandatory, but it is sligtly good to save memory.
|
||||||
defer f.Close()
|
defer func() {
|
||||||
|
_ = f.Close()
|
||||||
|
}()
|
||||||
|
|
||||||
fi, err := f.Stat()
|
fi, err := f.Stat()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user