Skip to content

Commit d09e9be

Browse files
minor cleanup
1 parent 736972a commit d09e9be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/behavioral/Plugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class PluginManager<T> {
7575
this.plugins = []
7676
}
7777

78-
register(...plugins: Plugin<T>[] | string[]): boolean {
78+
register(...plugins: Plugin<T>[]): boolean {
7979
for (const plugin of plugins) {
8080
const i = this.indexOf(plugin)
8181

@@ -122,8 +122,8 @@ export class PluginManager<T> {
122122
protected indexOf(plugin: Plugin<T> | string): number {
123123
const plugins = this.plugins
124124
const name = 'string' === typeof plugin
125-
? plugin
126-
: plugin.name
125+
? plugin
126+
: plugin.name
127127

128128
for (let i = plugins.length - 1; i >= 0; --i) {
129129
if (name === plugins[i].name) {

0 commit comments

Comments
 (0)