From f5f26f6b21df4b040f90bbf354bc7eb4ab74aa36 Mon Sep 17 00:00:00 2001 From: Daniel Sainati Date: Fri, 5 Jan 2024 12:32:25 -0500 Subject: [PATCH] add comment --- migrations/entitlements/migration.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migrations/entitlements/migration.go b/migrations/entitlements/migration.go index 914887de25..7f7ab25754 100644 --- a/migrations/entitlements/migration.go +++ b/migrations/entitlements/migration.go @@ -116,6 +116,7 @@ func ConvertValueToEntitlements( ) interpreter.Value { var staticType interpreter.StaticType + // during a real migration these two reference cases will not be hit, but they are here for easier testing // for reference types, we want to use the borrow type, rather than the type of the referenced value switch referenceValue := v.(type) { case *interpreter.EphemeralReferenceValue: @@ -181,6 +182,7 @@ func ConvertValueToEntitlements( } switch v := v.(type) { + // during a real migration these two reference cases will not be hit, but they are here for easier testing case *interpreter.EphemeralReferenceValue: entitledReferenceType := entitledType.(*sema.ReferenceType) staticAuthorization := interpreter.ConvertSemaAccessToStaticAuthorization(inter, entitledReferenceType.Authorization)