aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel/winipcfg/winipcfg_test.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-12-23 01:59:59 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-12-23 01:59:59 +0100
commitda2ad6ba3756aa397546ebe23e8e5d07959cbb15 (patch)
tree2949eeca5f60371522858e165c13e622b8f01720 /tunnel/winipcfg/winipcfg_test.go
parentversion: bump (diff)
downloadwireguard-windows-da2ad6ba3756aa397546ebe23e8e5d07959cbb15.tar.xz
wireguard-windows-da2ad6ba3756aa397546ebe23e8e5d07959cbb15.zip
global: use strings.Cut where possible
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tunnel/winipcfg/winipcfg_test.go')
-rw-r--r--tunnel/winipcfg/winipcfg_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tunnel/winipcfg/winipcfg_test.go b/tunnel/winipcfg/winipcfg_test.go
index 4424d1dd..d2e408a8 100644
--- a/tunnel/winipcfg/winipcfg_test.go
+++ b/tunnel/winipcfg/winipcfg_test.go
@@ -64,7 +64,7 @@ func getTestInterface() (*IPAdapterAddresses, error) {
marker := strings.ToLower(testInterfaceMarker)
for _, ifc := range ifcs {
- if strings.Index(strings.ToLower(ifc.FriendlyName()), marker) != -1 {
+ if strings.Contains(strings.ToLower(ifc.FriendlyName()), marker) {
return ifc, nil
}
}