From 72025dab7d38f964e57a27ed9210b10eebb7c018 Mon Sep 17 00:00:00 2001 From: Ilya Chernishev Date: Sun, 15 Feb 2026 12:59:20 +0300 Subject: [PATCH] Remove comment about potential failure in encoding Removed commented-out question regarding error handling. --- internal/config/appconf.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/config/appconf.go b/internal/config/appconf.go index b0ce8df..bc76592 100644 --- a/internal/config/appconf.go +++ b/internal/config/appconf.go @@ -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