Bruce Marriner %!s(int64=8) %!d(string=hai) anos
pai
achega
cc272d6f14
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 			}