From 99b355f7a1e8711d7d475d88cbd09338de0e8f1f Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 1 Jul 2023 05:21:30 -0400 Subject: [PATCH] fix: rename var nextId --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index a878518..d47aa63 100644 --- a/src/index.ts +++ b/src/index.ts @@ -47,9 +47,9 @@ function idFactory(start = 1) { let id = start; return function nextId() { - const nextId = id; + const _nextId = id; id += 1; - return nextId; + return _nextId; }; }