mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Use new gofumpt (#21613)
Update tinylib. Should fix CI. `gofumpt -w .&&go generate ./...`
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user