summaryrefslogtreecommitdiffhomepage
path: root/modules/logging
diff options
context:
space:
mode:
authorJacob Gadikian <[email protected]>2023-08-08 03:40:31 +0800
committerGitHub <[email protected]>2023-08-07 19:40:31 +0000
commitb32f265ecad60404c3818cc9d42e367a8e4eb7d4 (patch)
tree16d79c3ad7ddf0cc6f7915d1e47bdd6d269bf8d5 /modules/logging
parent431adc09805972196314b2b188904942cbe5dfee (diff)
downloadcaddy-b32f265ecad60404c3818cc9d42e367a8e4eb7d4.tar.gz
caddy-b32f265ecad60404c3818cc9d42e367a8e4eb7d4.zip
ci: Use gofumpt to format code (#5707)
Diffstat (limited to 'modules/logging')
-rw-r--r--modules/logging/filewriter.go2
-rw-r--r--modules/logging/filters.go3
2 files changed, 2 insertions, 3 deletions
diff --git a/modules/logging/filewriter.go b/modules/logging/filewriter.go
index f902a6db3..afc4afccd 100644
--- a/modules/logging/filewriter.go
+++ b/modules/logging/filewriter.go
@@ -126,7 +126,7 @@ func (fw FileWriter) OpenWriter() (io.WriteCloser, error) {
}
// otherwise just open a regular file
- return os.OpenFile(fw.Filename, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0666)
+ return os.OpenFile(fw.Filename, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0o666)
}
// UnmarshalCaddyfile sets up the module from Caddyfile tokens. Syntax:
diff --git a/modules/logging/filters.go b/modules/logging/filters.go
index 8cc84c73a..af9be745b 100644
--- a/modules/logging/filters.go
+++ b/modules/logging/filters.go
@@ -81,8 +81,7 @@ func hash(s string) string {
// of the SHA-256 hash of the content. Operates
// on string fields, or on arrays of strings
// where each string is hashed.
-type HashFilter struct {
-}
+type HashFilter struct{}
// CaddyModule returns the Caddy module information.
func (HashFilter) CaddyModule() caddy.ModuleInfo {