mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-11 15:36:37 +00:00
chore: enable more linter (#1557)
This commit is contained in:
@@ -9,9 +9,12 @@ import (
|
||||
"golang.org/x/sys/windows/registry"
|
||||
)
|
||||
|
||||
var WindowsVersion string
|
||||
var WindowsVersionFloat float64
|
||||
var (
|
||||
WindowsVersion string
|
||||
WindowsVersionFloat float64
|
||||
)
|
||||
|
||||
//nolint:gochecknoinits
|
||||
func init() {
|
||||
var err error
|
||||
WindowsVersion, WindowsVersionFloat, err = GetWindowsVersion()
|
||||
|
||||
Reference in New Issue
Block a user