Bruce Marriner пре 8 година
родитељ
комит
cc272d6f14
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      examples/airhorn/main.go

+ 1 - 1
examples/airhorn/main.go

@@ -131,7 +131,7 @@ func loadSound() error {
 
 		// If this is the end of the file, just return.
 		if err == io.EOF || err == io.ErrUnexpectedEOF {
-			file.Close()
+			err := file.Close()
 			if err != nil {
 				return err
 			}