Skip to content

Commit 129751a

Browse files
committed
lint fix
1 parent 97239bc commit 129751a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

collector/pg_wal.go

+11-11
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ package collector
1515

1616
import (
1717
"context"
18-
"database/sql"
18+
"database/sql"
1919
"github.com/prometheus/client_golang/prometheus"
2020
)
2121

@@ -74,18 +74,18 @@ func (c PGWALCollector) Update(ctx context.Context, instance *instance, ch chan<
7474
}
7575

7676
var segmentsValue float64
77-
if segments.Valid {
78-
segmentsValue = float64(segments.Int64)
79-
} else {
80-
segmentsValue = 0
77+
if segments.Valid {
78+
segmentsValue = float64(segments.Int64)
79+
} else {
80+
segmentsValue = 0
8181
}
8282

83-
var sizeValue float64
84-
if size.Valid {
85-
sizeValue = float64(size.Int64)
86-
} else {
87-
sizeValue = 0
88-
}
83+
var sizeValue float64
84+
if size.Valid {
85+
sizeValue = float64(size.Int64)
86+
} else {
87+
sizeValue = 0
88+
}
8989

9090
ch <- prometheus.MustNewConstMetric(
9191
pgWALSegments,

0 commit comments

Comments
 (0)