Make linters happier

This commit is contained in:
Ivan Danyliuk 2018-09-19 19:11:02 +03:00
parent f03231267b
commit 8a8428975b
No known key found for this signature in database
GPG Key ID: 97ED33CE024E1DBF
1 changed files with 2 additions and 1 deletions

View File

@ -66,6 +66,7 @@ func (n *NetworkSelector) Render() vecty.ComponentOrHTML {
)
}
// descriptionBlock renders the block with network description.
func (n *NetworkSelector) descriptionBlock() *vecty.HTML {
return elem.Div(
vecty.Markup(
@ -96,10 +97,10 @@ func LoadNetworks() (map[string]*Network, error) {
return networks, nil
}
// networkOptions renders 'option' elements for network 'select' input tag.
func (n *NetworkSelector) networkOptions() vecty.List {
var options vecty.List
for name := range n.networks {
fmt.Printf("'%s' == '%s'\n", n.current.Name, name)
options = append(options, elem.Option(
vecty.Markup(
vecty.Property("value", name),