enable gofumpt formatter

Based on our discussion gofumpt won the vote so use that one via
golangci-lint.

https://github.com/containers/podman/discussions/27291

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2025-11-11 12:12:42 +01:00
parent 2555b8b413
commit 5c1ed12d8d
389 changed files with 1228 additions and 1600 deletions

View File

@@ -140,9 +140,7 @@ func (s *SQLiteState) Refresh() (defErr error) {
defer ctrRows.Close()
for ctrRows.Next() {
var (
id, stateJSON string
)
var id, stateJSON string
if err := ctrRows.Scan(&id, &stateJSON); err != nil {
return fmt.Errorf("scanning container state row: %w", err)
}
@@ -174,9 +172,7 @@ func (s *SQLiteState) Refresh() (defErr error) {
defer podRows.Close()
for podRows.Next() {
var (
id, stateJSON string
)
var id, stateJSON string
if err := podRows.Scan(&id, &stateJSON); err != nil {
return fmt.Errorf("scanning pod state row: %w", err)
}
@@ -208,9 +204,7 @@ func (s *SQLiteState) Refresh() (defErr error) {
defer volRows.Close()
for volRows.Next() {
var (
name, stateJSON string
)
var name, stateJSON string
if err := volRows.Scan(&name, &stateJSON); err != nil {
return fmt.Errorf("scanning volume state row: %w", err)