Parcourir la source

Renamed 'newU' into 'parsed'

Dan Forest il y a 11 ans
Parent
commit
4c07e2006e
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      uuid.go

+ 2 - 2
uuid.go

@@ -221,9 +221,9 @@ func (u *UUID) UnmarshalJSON(data []byte) error {
 		return fmt.Errorf("invalid JSON UUID %s", str)
 	}
 
-	newU, err := ParseUUID(str[1:37])
+	parsed, err := ParseUUID(str[1:37])
 	if err == nil {
-		copy(u[:], newU[:])
+		copy(u[:], parsed[:])
 	}
 
 	return err