Skip to content

Commit

Permalink
Drop unnecessary null fallback
Browse files Browse the repository at this point in the history
image.Env ought to always exist. Fixes a coverage complaint.
  • Loading branch information
martinpitt committed Jul 13, 2023
1 parent 551d69f commit 7878199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ContainerIntegration.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const ContainerIntegration = ({ container, localImages }) => {
const volumes = renderContainerVolumes(container.Mounts);

const image = localImages.filter(img => img.Id === container.Image)[0];
const env = <ContainerEnv containerEnv={container.Config.Env} imageEnv={image.Env || []} />;
const env = <ContainerEnv containerEnv={container.Config.Env} imageEnv={image.Env} />;

return (
<DescriptionList isAutoColumnWidths columnModifier={{ md: '3Col' }} className='container-integration'>
Expand Down

0 comments on commit 7878199

Please sign in to comment.