mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +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 {
|
||||
for _, f := range ebiten.AppendDroppedFiles(nil) {
|
||||
// Calling Close is not mandatory, but it is sligtly good to save memory.
|
||||
defer f.Close()
|
||||
defer func() {
|
||||
_ = f.Close()
|
||||
}()
|
||||
|
||||
fi, err := f.Stat()
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user