mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
examples/blocks: bug fix: do not ignore error
This commit is contained in:
parent
0281ac7bd2
commit
c8aea2df16
@ -38,7 +38,11 @@ func main() {
|
||||
if err := pprof.StartCPUProfile(w); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
defer w.Flush()
|
||||
defer func() {
|
||||
if err := w.Flush(); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}()
|
||||
defer pprof.StopCPUProfile()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user