This commit is contained in:
Simon Ser 2020-01-20 13:22:18 +01:00
parent a0800c2436
commit 8b10324ab6
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 3 additions and 3 deletions

View file

@ -85,7 +85,7 @@ func (err *NoUpstreamError) Error() string {
// schemes. If no configured upstream server matches, a *NoUpstreamError is
// returned. An empty URL.Scheme means that the caller needs to perform
// auto-discovery with URL.Host.
func (s *Server) Upstream(schemes... string) (*url.URL, error) {
func (s *Server) Upstream(schemes ...string) (*url.URL, error) {
var urls []*url.URL
for _, scheme := range append(schemes, "") {
u, ok := s.upstreams[scheme]

View file

@ -5,9 +5,9 @@ import (
"encoding/base64"
"errors"
"fmt"
"net/http"
"sync"
"time"
"net/http"
imapclient "github.com/emersion/go-imap/client"
"github.com/emersion/go-sasl"

View file

@ -94,7 +94,7 @@ func (r *renderer) Render(w io.Writer, name string, data interface{}, ectx echo.
var renderData RenderData
if data == nil {
renderData = &struct { BaseRenderData }{ *NewBaseRenderData(ctx) }
renderData = &struct{ BaseRenderData }{*NewBaseRenderData(ctx)}
} else {
var ok bool
renderData, ok = data.(RenderData)