Remove comment about potential failure in encoding

Removed commented-out question regarding error handling.
This commit is contained in:
Ilya Chernishev
2026-02-15 12:59:20 +03:00
committed by GitHub
parent dd131477e2
commit 72025dab7d

View File

@@ -61,8 +61,6 @@ func NewRule(
err = errors.Join(err, file.Close())
}()
cfg := Rules{Rules: r}
// what if it fails?
err = toml.NewEncoder(file).Encode(cfg)
if err != nil {
return err