소스 검색

fix(meta): return read error in forbidden_words_test (#9706)

When reading a file fails, the error is currently swallowed / hidden.
Probably just a typo.
André Colomb 1 년 전
부모
커밋
0b95c5fa76
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      meta/forbidden_words_test.go

+ 1 - 1
meta/forbidden_words_test.go

@@ -35,7 +35,7 @@ func TestForbiddenWords(t *testing.T) {
 
 			bs, err := os.ReadFile(path)
 			if err != nil {
-				return nil
+				return err
 			}
 
 			for _, word := range forbiddenWords {