From b80853de90b10171155b8f3fde47d64ec7bfa0dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 17 Mar 2022 22:03:27 +0100 Subject: all: gofmt -w -r 'interface{} -> any' . Updates #9687 --- commands/commandeer.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'commands/commandeer.go') diff --git a/commands/commandeer.go b/commands/commandeer.go index bf42501e0..507ec430d 100644 --- a/commands/commandeer.go +++ b/commands/commandeer.go @@ -120,14 +120,14 @@ func (c *commandeer) errCount() int { return int(c.logger.LogCounters().ErrorCounter.Count()) } -func (c *commandeer) getErrorWithContext() interface{} { +func (c *commandeer) getErrorWithContext() any { errCount := c.errCount() if errCount == 0 { return nil } - m := make(map[string]interface{}) + m := make(map[string]any) m["Error"] = errors.New(removeErrorPrefixFromLog(c.logger.Errors())) m["Version"] = hugo.BuildVersionString() @@ -146,7 +146,7 @@ func (c *commandeer) getErrorWithContext() interface{} { return m } -func (c *commandeer) Set(key string, value interface{}) { +func (c *commandeer) Set(key string, value any) { if c.configured { panic("commandeer cannot be changed") } -- cgit v1.2.3