From 78f514001c7e807b52b22c5b8e99f42941e1c005 Mon Sep 17 00:00:00 2001 From: Kilian Ciuffolo Date: Sat, 13 Apr 2024 17:57:39 -0700 Subject: [PATCH] chore: address small nits in the version checker script --- scripts/versioncheck.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/versioncheck.go b/scripts/versioncheck.go index 4c7c519..6980874 100644 --- a/scripts/versioncheck.go +++ b/scripts/versioncheck.go @@ -10,7 +10,7 @@ import ( func main() { pattern := regexp.MustCompile(`v[0-9]\.[0-9]\.[0-9]`) - versionSet := make(map[string][]string) + versionSet := map[string][]string{} extensions := []string{".go", ".md"} err := filepath.Walk(".", func(path string, info os.FileInfo, err error) error { @@ -40,14 +40,14 @@ func main() { }) if err != nil { - fmt.Println("Error walking the path:", err) + fmt.Println("error: failed to walk dir tree:", err) return } versions := keys(versionSet) if len(versions) > 1 { - fmt.Println("Error: Multiple version patterns found") + fmt.Println("error: multiple versions found") for version, path := range versionSet { fmt.Printf(" %s: %s\n", version, path) }