Skip to content

Commit a0e3f5f

Browse files
committed
review feedback
1 parent 8b88bd2 commit a0e3f5f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/top.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,8 @@ export async function topPods(api: CoreV1Api, metrics: Metrics, namespace?: stri
8888
const getPodList = async (): Promise<V1PodList> => {
8989
if (namespace) {
9090
return (await api.listNamespacedPod(namespace)).body;
91-
} else {
92-
return (await api.listPodForAllNamespaces()).body;
9391
}
92+
return (await api.listPodForAllNamespaces()).body;
9493
};
9594

9695
const [podMetrics, podList] = await Promise.all([metrics.getPodMetrics(namespace), getPodList()]);

0 commit comments

Comments
 (0)