mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-17 10:35:11 +00: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:
parent
0343bca257
commit
0b95c5fa76
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user