Skip to content

Commit 92d582e

Browse files
committed
wgctrl: apply gofumpt
Signed-off-by: Matt Layher <mdlayher@gmail.com>
1 parent dd7407c commit 92d582e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

client_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ func (c *testClient) Devices() ([]*wgtypes.Device, error) { return c.DevicesFunc
236236
func (c *testClient) Device(name string) (*wgtypes.Device, error) {
237237
return c.DeviceFunc(name)
238238
}
239+
239240
func (c *testClient) ConfigureDevice(name string, cfg wgtypes.Config) error {
240241
return c.ConfigureDeviceFunc(name, cfg)
241242
}

internal/wgopenbsd/client_openbsd.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ import (
1919
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
2020
)
2121

22-
var (
23-
// ifGroupWG is the WireGuard interface group name passed to the kernel.
24-
ifGroupWG = [16]byte{0: 'w', 1: 'g'}
25-
)
22+
// ifGroupWG is the WireGuard interface group name passed to the kernel.
23+
var ifGroupWG = [16]byte{0: 'w', 1: 'g'}
2624

2725
var _ wginternal.Client = &Client{}
2826

0 commit comments

Comments
 (0)