Fix lint errors

This commit is contained in:
世界
2026-08-30 17:41:46 +08:00
parent ba4146ea31
commit 7d84f7d3e0
6 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ func (b *backendBase) AttachReturn(returnPath tun.Return) error {
if slices.Contains(b.returnPaths, returnPath) {
return nil
}
b.returnPaths = append(b.returnPaths[:len(b.returnPaths):len(b.returnPaths)], returnPath)
b.returnPaths = append(slices.Clip(b.returnPaths), returnPath)
return nil
}