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

@@ -151,7 +151,7 @@ func (store *QueueStore[I]) multiWrite(key Key, items []I) (err error) {
// Increment the item count.
store.entries[key.String()] = time.Now().UnixNano()
return
return err
}
// write - writes an item to the directory.
@@ -235,7 +235,7 @@ func (store *QueueStore[I]) GetRaw(key Key) (raw []byte, err error) {
raw, err = os.ReadFile(filepath.Join(store.directory, key.String()))
if err != nil {
return
return raw, err
}
if len(raw) == 0 {
@@ -246,7 +246,7 @@ func (store *QueueStore[I]) GetRaw(key Key) (raw []byte, err error) {
raw, err = s2.Decode(nil, raw)
}
return
return raw, err
}
// Get - gets an item from the store.
@@ -274,7 +274,7 @@ func (store *QueueStore[I]) GetMultiple(key Key) (items []I, err error) {
items = append(items, item)
}
return
return items, err
}
// Del - Deletes an entry from the store.

View File

@@ -86,7 +86,7 @@ func getItemCount(k string) (count int, err error) {
if len(v) == 2 {
return strconv.Atoi(v[0])
}
return
return count, err
}
func parseKey(k string) (key Key) {
@@ -102,7 +102,7 @@ func parseKey(k string) (key Key) {
key.Extension = "." + vals[1]
key.Name = strings.TrimSuffix(key.Name, key.Extension)
}
return
return key
}
// replayItems - Reads the items from the store and replays.