21361: Change variable names to match Go style
authorBrett Smith <brett.smith@curii.com>
Mon, 29 Jan 2024 14:52:59 +0000 (09:52 -0500)
committerBrett Smith <brett.smith@curii.com>
Wed, 31 Jan 2024 22:22:25 +0000 (17:22 -0500)
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

lib/install/deps.go

index f4597d81626614a402559c4913273c18b8cc4b08..9f483b7654a5a2ffed36fdf6f694cdf29c966871 100644 (file)
@@ -832,21 +832,21 @@ func identifyOS() (osversion, error) {
        case "debian":
                osv.Debian = true
        default:
-               id_like_match := false
-               for _, id_like := range strings.Split(kv["ID_LIKE"], " ") {
-                       switch id_like {
+               idLikeMatched := false
+               for _, idLike := range strings.Split(kv["ID_LIKE"], " ") {
+                       switch idLike {
                        case "debian":
                                osv.Debian = true
-                               id_like_match = true
+                               idLikeMatched = true
                        case "rhel":
                                osv.RedHat = true
-                               id_like_match = true
+                               idLikeMatched = true
                        }
-                       if id_like_match {
+                       if idLikeMatched {
                                break
                        }
                }
-               if !id_like_match {
+               if !idLikeMatched {
                        return osv, fmt.Errorf("no supported ID found in /etc/os-release")
                }
        }