@@ -54,14 +54,14 @@ export class PluginAPI {
5454 */
5555 public async applications ( ) : Promise < Application [ ] > {
5656 const apps = new Array < Application > ( )
57- for ( const [ _ , p ] of this . plugins ) {
57+ for ( const [ , p ] of this . plugins ) {
5858 const pluginApps = await p . applications ( )
5959
6060 // Add plugin key to each app.
6161 apps . push (
6262 ...pluginApps . map ( ( app ) => {
63- app = { ...app , path : path . join ( p . routerPath , app . path || "" ) }
64- app = { ...app , iconPath : path . join ( app . path || "" , app . iconPath ) }
63+ app = { ...app , path : path . join ( p . routerPath , app . path || "" ) }
64+ app = { ...app , iconPath : path . join ( app . path || "" , app . iconPath ) }
6565 return {
6666 ...app ,
6767 plugin : {
@@ -85,7 +85,7 @@ export class PluginAPI {
8585 * mount mounts all plugin routers onto r.
8686 */
8787 public mount ( r : express . Router ) : void {
88- for ( const [ _ , p ] of this . plugins ) {
88+ for ( const [ , p ] of this . plugins ) {
8989 r . use ( `/${ p . name } ` , p . router ( ) )
9090 }
9191 }
@@ -142,7 +142,7 @@ export class PluginAPI {
142142 encoding : "utf8" ,
143143 } )
144144 const packageJSON : PackageJSON = JSON . parse ( str )
145- for ( const [ _ , p ] of this . plugins ) {
145+ for ( const [ , p ] of this . plugins ) {
146146 if ( p . name === packageJSON . name ) {
147147 this . logger . warn (
148148 `ignoring duplicate plugin ${ q ( p . name ) } at ${ q ( dir ) } , using previously loaded ${ q ( p . modulePath ) } ` ,
0 commit comments