mirror of
https://github.com/syncthing/syncthing.git
synced 2025-12-23 22:18:14 -05:00
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.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user