Skip to content

Commit

Permalink
Ignore lint for deprectaed types
Browse files Browse the repository at this point in the history
  • Loading branch information
SupunS committed Nov 8, 2023
1 parent 8da6cd1 commit 23f4f04
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions migrations/account_type/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,33 +285,33 @@ func (m *AccountTypeMigration) maybeConvertAccountType(staticType interpreter.St
default:
// Is it safe to do so?
switch staticType {
case interpreter.PrimitiveStaticTypePublicAccount:
case interpreter.PrimitiveStaticTypePublicAccount: //nolint:staticcheck
return unauthorizedAccountReferenceType
case interpreter.PrimitiveStaticTypeAuthAccount:
case interpreter.PrimitiveStaticTypeAuthAccount: //nolint:staticcheck
return authAccountReferenceType

case interpreter.PrimitiveStaticTypeAuthAccountCapabilities,
interpreter.PrimitiveStaticTypePublicAccountCapabilities:
case interpreter.PrimitiveStaticTypeAuthAccountCapabilities, //nolint:staticcheck
interpreter.PrimitiveStaticTypePublicAccountCapabilities: //nolint:staticcheck
return interpreter.PrimitiveStaticTypeAccount_Capabilities

case interpreter.PrimitiveStaticTypeAuthAccountAccountCapabilities:
case interpreter.PrimitiveStaticTypeAuthAccountAccountCapabilities: //nolint:staticcheck
return interpreter.PrimitiveStaticTypeAccount_AccountCapabilities

case interpreter.PrimitiveStaticTypeAuthAccountStorageCapabilities:
case interpreter.PrimitiveStaticTypeAuthAccountStorageCapabilities: //nolint:staticcheck
return interpreter.PrimitiveStaticTypeAccount_StorageCapabilities

case interpreter.PrimitiveStaticTypeAuthAccountContracts,
interpreter.PrimitiveStaticTypePublicAccountContracts:
case interpreter.PrimitiveStaticTypeAuthAccountContracts, //nolint:staticcheck
interpreter.PrimitiveStaticTypePublicAccountContracts: //nolint:staticcheck
return interpreter.PrimitiveStaticTypeAccount_Contracts

case interpreter.PrimitiveStaticTypeAuthAccountKeys,
interpreter.PrimitiveStaticTypePublicAccountKeys:
case interpreter.PrimitiveStaticTypeAuthAccountKeys, //nolint:staticcheck
interpreter.PrimitiveStaticTypePublicAccountKeys: //nolint:staticcheck
return interpreter.PrimitiveStaticTypeAccount_Keys

case interpreter.PrimitiveStaticTypeAuthAccountInbox:
case interpreter.PrimitiveStaticTypeAuthAccountInbox: //nolint:staticcheck
return interpreter.PrimitiveStaticTypeAccount_Inbox

case interpreter.PrimitiveStaticTypeAccountKey:
case interpreter.PrimitiveStaticTypeAccountKey: //nolint:staticcheck
return interpreter.AccountKeyStaticType
}
}
Expand Down

0 comments on commit 23f4f04

Please sign in to comment.