瀏覽代碼

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
 			}