go fmt
This commit is contained in:
parent
a0800c2436
commit
8b10324ab6
3 changed files with 3 additions and 3 deletions
|
@ -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]
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue