소스 검색

Linting..

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
 			}