Skip to content

Commit

Permalink
apply recommendation
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
  • Loading branch information
crenshaw-dev committed Oct 16, 2024
1 parent 016d5af commit a2e5e6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/src/app/applications/components/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1035,9 +1035,9 @@ export function getPodStateReason(pod: appModels.State): {message: string; reaso
}

let initializing = false;
let i = -1;
for (const container of (pod.status.initContainerStatuses || []).slice()) {
i++;
const initContainerStatuses = pod.status.initContainerStatuses || [];
for (let i = 0; i < initContainerStatuses.length; i++) {
const container = initContainerStatuses[i];
if (container.state.terminated && container.state.terminated.exitCode === 0) {
continue;
}
Expand Down

0 comments on commit a2e5e6a

Please sign in to comment.