Browse Source

daemon/logger/splunk: format code with gofumpt

Formatting the code with https://github.com/mvdan/gofumpt

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 3 years ago
parent
commit
7ed5a30b5c
2 changed files with 3 additions and 2 deletions
  1. 1 1
      daemon/logger/splunk/splunk.go
  2. 2 1
      daemon/logger/splunk/splunkhecmock_test.go

+ 1 - 1
daemon/logger/splunk/splunk.go

@@ -239,7 +239,7 @@ func New(info logger.Info) (logger.Logger, error) {
 	sourceType := info.Config[splunkSourceTypeKey]
 	index := info.Config[splunkIndexKey]
 
-	var nullMessage = &splunkMessage{
+	nullMessage := &splunkMessage{
 		Host:       hostname,
 		Source:     source,
 		SourceType: sourceType,

+ 2 - 1
daemon/logger/splunk/splunkhecmock_test.go

@@ -55,7 +55,8 @@ func NewHTTPEventCollectorMock(t *testing.T) *HTTPEventCollectorMock {
 		token:               "4642492F-D8BD-47F1-A005-0C08AE4657DF",
 		simulateServerError: false,
 		test:                t,
-		connectionVerified:  false}
+		connectionVerified:  false,
+	}
 }
 
 func (hec *HTTPEventCollectorMock) simulateErr(b bool) {