Skip to content

Commit 943c929

Browse files
koddssonkeithamus
andcommitted
Check actual object rather than string
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
1 parent d790e4b commit 943c929

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lazy-define.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const strategies: Record<string, Strategy> = {
5555
}
5656

5757
export function addStrategy(name: string, strategy: Strategy) {
58-
if (name in strategy) {
58+
if (name in strategies) {
5959
throw new Error(`Strategy ${name} already exists!`)
6060
}
6161
strategies[name] = strategy

0 commit comments

Comments
 (0)