Skip to content

Commit f50e5f4

Browse files
MajorLiftElliot Winkler
andcommitted
Rename variable for clarity
Co-authored-by: Elliot Winkler <[email protected]>
1 parent 161b7ce commit f50e5f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/assets-controllers/src/AssetsContractController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export class AssetsContractController {
234234

235235
// TODO: Expand into base-controller utility function that batch registers action handlers.
236236
#registerActionHandlers() {
237-
const nonMethodClassProperties = [
237+
const methodsExcludedFromMessenger = [
238238
'constructor',
239239
'messagingSystem',
240240
'setProvider',
@@ -247,7 +247,7 @@ export class AssetsContractController {
247247
(method) => {
248248
if (
249249
((key: keyof this): key is AssetsContractControllerMethodName =>
250-
!nonMethodClassProperties.find((e) => e === key) &&
250+
!methodsExcludedFromMessenger.find((e) => e === key) &&
251251
typeof this[key] === 'function')(method)
252252
) {
253253
this.messagingSystem.registerActionHandler(

0 commit comments

Comments
 (0)