Skip to content

Commit 63ec3f2

Browse files
committed
lint: unused assignment netstack/fdbased
1 parent 844a982 commit 63ec3f2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

intra/netstack/fdbased.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ func (e *endpoint) swap(fd int, force bool) (err error) {
288288

289289
f, err := newTun(fd) // fd may be invalid (ex: -1)
290290
if err != nil || f == nil {
291-
f = invalidFds // nilaway
292291
clos(fd)
293292
return log.EE("ns: tun(%d): swap: err: %v / %v; using invalidfd", fd, err)
294293
}

0 commit comments

Comments
 (0)