mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-10-19 07:44:24 +00:00
Fix lint errors
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user