From 763fb4a962ace83a865541d81bb933f849c27033 Mon Sep 17 00:00:00 2001 From: Ivan Date: Thu, 20 Nov 2025 21:45:30 -0600 Subject: [PATCH] refactor: improve variable initialization in GetRTT method for better clarity --- pkg/interfaces/tcp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/interfaces/tcp.go b/pkg/interfaces/tcp.go index 015c8e9..5ac9ff8 100644 --- a/pkg/interfaces/tcp.go +++ b/pkg/interfaces/tcp.go @@ -384,7 +384,7 @@ func (tc *TCPClientInterface) GetRTT() time.Duration { } if tcpConn, ok := tc.conn.(*net.TCPConn); ok { - var rtt time.Duration = 0 + var rtt time.Duration if runtime.GOOS == "linux" { if info, err := tcpConn.SyscallConn(); err == nil { if err := info.Control(func(fd uintptr) { // #nosec G104