Skip to content

Commit c14974b

Browse files
fix: it's not a conflict if there's only one child installation lol
1 parent ff4ea35 commit c14974b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/base/src/hook.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ export abstract class Hook<
3939
plugin: Plugin,
4040
childInstallations: (HookInstallation | Conflict<HookInstallation>)[]
4141
): (HookInstallation | Conflict<HookInstallation>)[] {
42+
if (childInstallations.length === 1) {
43+
return childInstallations
44+
}
45+
4246
return [
4347
{
4448
plugin,

0 commit comments

Comments
 (0)