Skip to content

Commit 2f0180e

Browse files
committed
rm extraneous null check
1 parent 8338af3 commit 2f0180e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

site/src/modules/resources/AgentDevcontainerCard.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@ export const AgentDevcontainerCard: FC<AgentDevcontainerCardProps> = ({
5454
container.ports.map((port) => {
5555
const portLabel = `${port.port}/${port.network.toUpperCase()}`;
5656
const hasHostBind =
57-
port.host_port !== undefined &&
58-
port.host_port !== null &&
59-
port.host_ip !== undefined &&
60-
port.host_ip !== null;
57+
port.host_port !== undefined && port.host_ip !== undefined;
6158
const helperText = hasHostBind
6259
? `${port.host_ip}:${port.host_port}`
6360
: "Not bound to host";

0 commit comments

Comments
 (0)