aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/syntax
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-16 15:49:18 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-16 15:49:18 +0200
commit7dbd3a69af43c58255b1dce82d05906f6243b06d (patch)
tree8eff8a92b1966f1934ab321bc1a5a060f7a6fd71 /ui/syntax
parentservice: use more upstream constants (diff)
downloadwireguard-windows-7dbd3a69af43c58255b1dce82d05906f6243b06d.tar.xz
wireguard-windows-7dbd3a69af43c58255b1dce82d05906f6243b06d.zip
global: correct names and patterns for go lint
Diffstat (limited to 'ui/syntax')
-rw-r--r--ui/syntax/syntaxedit.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/syntax/syntaxedit.go b/ui/syntax/syntaxedit.go
index 62b4310b..1f0fb692 100644
--- a/ui/syntax/syntaxedit.go
+++ b/ui/syntax/syntaxedit.go
@@ -120,9 +120,8 @@ func NewSyntaxEdit(parent walk.Container) (*SyntaxEdit, error) {
func(v interface{}) error {
if s, ok := v.(string); ok {
return se.SetText(s)
- } else {
- return se.SetText("")
}
+ return se.SetText("")
},
se.textChangedPublisher.Event()))