diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-12-09 17:53:59 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-12-09 23:13:56 +0100 |
commit | 182247f5c830f93bfdb2a843a0ce3d394008c6d0 (patch) | |
tree | a2e3c0356c6c5ff2fcb8b572654d39e4735c4850 /ui/tunnelspage.go | |
parent | build: update to go 1.17.4 and drop upstreamed patches (diff) | |
download | wireguard-windows-182247f5c830f93bfdb2a843a0ce3d394008c6d0.tar.xz wireguard-windows-182247f5c830f93bfdb2a843a0ce3d394008c6d0.zip |
global: apply gofumpt
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | ui/tunnelspage.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/tunnelspage.go b/ui/tunnelspage.go index a62cb0ce..4c687a39 100644 --- a/ui/tunnelspage.go +++ b/ui/tunnelspage.go @@ -280,7 +280,7 @@ func (tp *TunnelsPage) updateConfView() { func (tp *TunnelsPage) importFiles(paths []string) { go func() { - syncedMsgBox := func(title string, message string, flags walk.MsgBoxStyle) { + syncedMsgBox := func(title, message string, flags walk.MsgBoxStyle) { tp.Synchronize(func() { walk.MsgBox(tp.Form(), title, message, flags) }) @@ -422,7 +422,6 @@ func (tp *TunnelsPage) addTunnel(config *conf.Config) { if err != nil { showErrorCustom(tp.Form(), l18n.Sprintf("Unable to create tunnel"), err.Error()) } - } // Handlers @@ -519,7 +518,6 @@ func (tp *TunnelsPage) onDelete() { tunnelsToDelete := make([]manager.Tunnel, len(indices)) for i, j := range indices { tunnelsToDelete[i] = tp.listView.model.tunnels[j] - } go func() { tp.listView.SetSuspendTunnelsUpdate(true) |