Skip to content

Commit 9cddb59

Browse files
committed
remove unused
1 parent 5b81bee commit 9cddb59

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/app_list.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function childStatuses(app: App) {
1616
return app.containers.length > 1 ? ` ${app.containers.map(c => miniStateIcons[c.state] || miniStateIcons.unknown).join('')}` : ''
1717
}
1818

19-
function row(app: App, container: Container, options: { fields?: string[], full?: boolean }) {
19+
function row(app: App, options: { fields?: string[], full?: boolean }) {
2020
const items = []
2121
const source = `${icons[Location.from(app.context, app.name, app.primary.config.source).local ? 'local' : 'remote']} ${app.primary.config.source}`
2222
const slice = app.containers.length > 1 && options.full ? app.containers.length : 1
@@ -55,9 +55,6 @@ export default function list(apps: App[], options: { fields?: string[], full?: b
5555
}
5656
})
5757

58-
apps.forEach((app) => {
59-
const source = `${icons[Location.from(app.context, app.name, app.primary.config.source).local ? 'local' : 'remote']} ${app.primary.config.source}`
60-
row(app, app.primary, options).forEach(item => table.push(item))
61-
})
58+
apps.forEach((app) => row(app, options).forEach(item => table.push(item)))
6259
console.log(table.toString().replaceAll('\n *\n', '\n'))
6360
}

0 commit comments

Comments
 (0)