Skip to content

Commit eb1ce3f

Browse files
authored
chore: fix logic typo (#7028)
1 parent 839c31e commit eb1ce3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/g6/src/registry/register.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function register<T extends ExtensionCategory>(
4040
Ctor: ExtensionRegistry[T][string],
4141
) {
4242
const ext = EXTENSION_REGISTRY[category][type];
43-
if (ext && ext) {
43+
if (ext) {
4444
print.warn(`The extension ${type} of ${category} has been registered before, and will be overridden.`);
4545
}
4646

0 commit comments

Comments
 (0)