Use new gofumpt (#21613)

Update tinylib. Should fix CI.

`gofumpt -w .&&go generate ./...`
This commit is contained in:
Klaus Post
2025-09-28 22:59:21 +02:00
committed by GitHub
parent 456d9462e5
commit b8631cf531
171 changed files with 881 additions and 899 deletions

View File

@@ -178,7 +178,7 @@ func (h *Target) initQueueStore(ctx context.Context) (err error) {
h.store = queueStore
h.storeCtxCancel = cancel
store.StreamItems(h.store, h, ctx.Done(), h.kconfig.LogOnce)
return
return err
}
func (h *Target) startKafkaLogger() {
@@ -355,7 +355,7 @@ func (h *Target) SendFromStore(key store.Key) (err error) {
err = h.send(auditEntry)
if err != nil {
atomic.AddInt64(&h.failedMessages, 1)
return
return err
}
// Delete the event from store.
return h.store.Del(key)

View File

@@ -78,7 +78,7 @@ func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (err error) {
// completes is also an error.
func (x *XDGSCRAMClient) Step(challenge string) (response string, err error) {
response, err = x.ClientConversation.Step(challenge)
return
return response, err
}
// Done returns true if the conversation is completed or has errored.

View File

@@ -170,7 +170,7 @@ func splitTargets(targets []Target, t types.TargetType) (group1 []Target, group2
group2 = append(group2, target)
}
}
return
return group1, group2
}
func cancelTargets(targets []Target) {