cmd/tailscale: delete unused FileTargetsEvent; gofmt

Signed-off-by: Elias Naur <mail@eliasnaur.com>
pull/19/head
Elias Naur 3 years ago
parent d3edb004e3
commit 54eab1a5d3

@ -180,7 +180,6 @@ type (
WebAuthEvent struct{} WebAuthEvent struct{}
GoogleAuthEvent struct{} GoogleAuthEvent struct{}
LogoutEvent struct{} LogoutEvent struct{}
FileTargetsEvent struct{}
) )
// serverOAuthID is the OAuth ID of the tailscale-android server, used // serverOAuthID is the OAuth ID of the tailscale-android server, used
@ -872,7 +871,6 @@ func (a *App) runUI() error {
case files = <-onFileShare: case files = <-onFileShare:
ui.ShowShareDialog() ui.ShowShareDialog()
w.Invalidate() w.Invalidate()
backendEvents <- FileTargetsEvent{}
case t := <-a.targetsLoaded: case t := <-a.targetsLoaded:
ui.FillShareDialog(t.Targets, t.Err) ui.FillShareDialog(t.Targets, t.Err)
w.Invalidate() w.Invalidate()

@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
//go:build pprof
// +build pprof // +build pprof
package main package main

@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
//go:build tools
// +build tools // +build tools
package main package main

Loading…
Cancel
Save