Bump golangci-linter to 1.62.2 (#772)

* Bump golangci-linter to 1.62.2
* Address linting warning via change or ignore
This commit is contained in:
Dan Sosedoff
2025-11-11 11:26:49 -08:00
committed by GitHub
parent 70f62feec8
commit 4ce11c039e
4 changed files with 7 additions and 5 deletions

View File

@@ -57,7 +57,9 @@ func assertMatches(t *testing.T, expected, src []string) {
func pgVersion() (int, int) {
var major, minor int
fmt.Sscanf(os.Getenv("PGVERSION"), "%d.%d", &major, &minor)
if _, err := fmt.Sscanf(os.Getenv("PGVERSION"), "%d.%d", &major, &minor); err != nil {
log.Println("[warn] unable to read value of PGVERSION env var")
}
return major, minor
}