Skip to content

Commit 821d30b

Browse files
committed
CR
1 parent c99c749 commit 821d30b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

collector/collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func registerCollector(name string, isDefaultEnabled bool, createFunc func(colle
7575
}
7676

7777
// Create flag for this collector
78-
flagName := fmt.Sprint(collectorFlagPrefix, name)
78+
flagName := collectorFlagPrefix + name
7979
flagHelp := fmt.Sprintf("Enable the %s collector (default: %s).", name, helpDefaultState)
8080
defaultValue := fmt.Sprintf("%v", isDefaultEnabled)
8181

collector/pg_stat_statements.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ import (
1717
"context"
1818
"database/sql"
1919
"fmt"
20-
"github.com/alecthomas/kingpin/v2"
2120
"log/slog"
2221

22+
"github.com/alecthomas/kingpin/v2"
2323
"github.com/blang/semver/v4"
2424
"github.com/prometheus/client_golang/prometheus"
2525
)

0 commit comments

Comments
 (0)