Browse Source

Linting..

Bruce Marriner 8 năm trước cách đây
mục cha
commit
cc272d6f14
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
 			}