Skip to content

Commit 3c0a047

Browse files
committed
Fix lint
1 parent 129cfcf commit 3c0a047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/capture/netstat_native.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func displaySockInfo(proto string, s []netstat.SockTabEntry, resolve bool, write
110110
saddr := lookup(e.LocalAddr)
111111
daddr := lookup(e.RemoteAddr)
112112
state := e.State.String()
113-
if len(state) <= 0 {
113+
if len(state) == 0 {
114114
state = "CLOSE"
115115
}
116116
_, err = fmt.Fprintf(writer, "%-5s %-23.23s %-23.23s %-12s %-16s\n", proto, saddr, daddr, state, p)

0 commit comments

Comments
 (0)