From de4cc6221481e3614de359a9fb67d81123899bc0 Mon Sep 17 00:00:00 2001 From: Adam Laycock Date: Tue, 21 Mar 2023 15:31:04 +0000 Subject: [PATCH] fix(lint): address linting issues --- src/functions/address-object.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/functions/address-object.ts b/src/functions/address-object.ts index b694ac5..21288ba 100644 --- a/src/functions/address-object.ts +++ b/src/functions/address-object.ts @@ -1,6 +1,5 @@ /* eslint @typescript-eslint/no-explicit-any:off */ -import type {DeepPartial} from '../types' import {defaults} from './defaults' /** Options passed to `addressObject` */ @@ -32,9 +31,9 @@ export const addressObject = ( ) => { const {seperator, fallback} = defaults(options, defaultOptions) - return address.split(seperator).reduce((object, key) => { - if (object[key]) { - return object[key] + return address.split(seperator).reduce((currentObject, key) => { + if (currentObject[key]) { + return currentObject[key] } if (fallback) return fallback