mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-27 19:43:01 +00:00
use sliceview better
This commit is contained in:
parent
f64bd92ed2
commit
6f6c289d6e
@ -191,8 +191,7 @@ func waitForNodesToBeTaggedInStatus(t testing.TB, ctx context.Context, ts *tsnet
|
||||
if tags == nil {
|
||||
return false
|
||||
}
|
||||
sliceTags := tags.AsSlice()
|
||||
if len(sliceTags) != 1 || sliceTags[0] != tag {
|
||||
if tags.Len() != 1 || tags.At(0) != tag {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user