Skip to content

Commit f32f135

Browse files
committed
style: Remove redundant code and improve readability
1 parent d9e7c1e commit f32f135

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/components/ProtocolOverview.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,7 @@ function ProtocolOverview() {
145145
<div>
146146
<h4 className="font-medium">{packet.name}</h4>
147147
<p className="text-sm text-muted-foreground">
148-
{packet.name === 'SYN' &&
149-
'Synchronize: Initiates a connection'}
150-
{packet.name === 'SYN-ACK' &&
151-
'Synchronize-Acknowledge: Acknowledges SYN and sends SYN'}
152-
{packet.name === 'ACK' &&
153-
'Acknowledge: Confirms receipt of packets'}
154-
{packet.name === 'DATA' &&
155-
'Data: Contains actual information being transferred'}
156-
{packet.name === 'FIN' &&
157-
'Finish: Initiates connection termination'}
158-
{packet.name === 'FIN-ACK' &&
159-
'Finish-Acknowledge: Acknowledges FIN request'}
148+
{packet.description}
160149
</p>
161150
</div>
162151
</div>

0 commit comments

Comments
 (0)