This commit is contained in:
Simon Ser 2019-12-16 14:53:56 +01:00
parent 65931445a8
commit 7f48702b83
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 4 additions and 4 deletions

View file

@ -37,7 +37,7 @@ func (p *goPlugin) SetRoutes(group *echo.Group) {
group.Add(r.Method, r.Path, r.Handler)
}
group.Static("/plugins/" + p.p.Name + "/assets", pluginDir + "/" + p.p.Name + "/public/assets")
group.Static("/plugins/"+p.p.Name+"/assets", pluginDir+"/"+p.p.Name+"/public/assets")
}
func (p *goPlugin) Inject(name string, data interface{}) error {

View file

@ -119,7 +119,7 @@ func (p *luaPlugin) SetRoutes(group *echo.Group) {
}
_, name := filepath.Split(filepath.Dir(p.filename))
group.Static("/plugins/" + name + "/assets", filepath.Dir(p.filename) + "/public/assets")
group.Static("/plugins/"+name+"/assets", filepath.Dir(p.filename)+"/public/assets")
}
func (p *luaPlugin) Close() error {

View file

@ -9,8 +9,8 @@ import (
"time"
imapclient "github.com/emersion/go-imap/client"
"github.com/emersion/go-smtp"
"github.com/emersion/go-sasl"
"github.com/emersion/go-smtp"
)
// TODO: make this configurable
@ -130,7 +130,7 @@ type SessionManager struct {
func newSessionManager(dialIMAP DialIMAPFunc, dialSMTP DialSMTPFunc) *SessionManager {
return &SessionManager{
sessions: make(map[string]*Session),
sessions: make(map[string]*Session),
dialIMAP: dialIMAP,
dialSMTP: dialSMTP,
}