aboutsummaryrefslogtreecommitdiff
path: root/scfg
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-01-13 14:12:37 +0800
committerRunxi Yu <me@runxiyu.org>2025-01-13 14:12:37 +0800
commitb626ea8beb4bc1eef134a990eb1a7361c1c126b1 (patch)
treee054c0b34b6d009e22487f73a7beb4e4e77c9bd2 /scfg
parentAdd color to logging functions (diff)
downloadgo-lindenii-common-b626ea8beb4bc1eef134a990eb1a7361c1c126b1.tar.gz
go-lindenii-common-b626ea8beb4bc1eef134a990eb1a7361c1c126b1.tar.zst
go-lindenii-common-b626ea8beb4bc1eef134a990eb1a7361c1c126b1.zip
Reformat code
Diffstat (limited to 'scfg')
-rw-r--r--scfg/writer.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/scfg/writer.go b/scfg/writer.go
index 97148a3..dd3b166 100644
--- a/scfg/writer.go
+++ b/scfg/writer.go
@@ -6,9 +6,7 @@ import (
"strings"
)
-var (
- errDirEmptyName = errors.New("scfg: directive with empty name")
-)
+var errDirEmptyName = errors.New("scfg: directive with empty name")
// Write writes a parsed configuration to the provided io.Writer.
func Write(w io.Writer, blk Block) error {