summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Colomb <src@andre.colomb.de>2024-09-18 19:12:24 +0200
committerGitHub <noreply@github.com>2024-09-18 19:12:24 +0200
commit0b95c5fa76c813b692385f65aa19a24134d7ed45 (patch)
treee48f9a1cee7815c0b5cdc5503bf5ce9dedf582cd
parent0343bca257cf9077d5cf4b6d0ba6e28fdf80d4bc (diff)
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.
-rw-r--r--meta/forbidden_words_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/forbidden_words_test.go b/meta/forbidden_words_test.go
index 4323a4cfeb..7bbc05f246 100644
--- a/meta/forbidden_words_test.go
+++ b/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 {