fix fmt and vetting issues

This commit is contained in:
Simon Aronsson 2020-10-03 22:25:17 +02:00
parent ca292a1817
commit a7a28ec984
No known key found for this signature in database
GPG key ID: FAD201D3387ED34B
6 changed files with 5 additions and 7 deletions

View file

@ -154,4 +154,4 @@ func (e *emailTypeNotifier) Fire(entry *log.Entry) error {
return nil
}
func (e *emailTypeNotifier) Close() {}
func (e *emailTypeNotifier) Close() {}

View file

@ -4,8 +4,8 @@ import (
"bytes"
"fmt"
"github.com/containrrr/shoutrrr/pkg/types"
"strings"
"text/template"
"strings"
"github.com/containrrr/shoutrrr"
t "github.com/containrrr/watchtower/pkg/types"
@ -136,7 +136,7 @@ func getShoutrrrTemplate(c *cobra.Command) *template.Template {
funcs := template.FuncMap{
"ToUpper": strings.ToUpper,
"ToLower": strings.ToLower,
"Title": strings.Title,
"Title": strings.Title,
}
// If we succeed in getting a non-empty template configuration

View file

@ -75,7 +75,6 @@ func TestShoutrrrStringFunctions(t *testing.T) {
require.Equal(t, "INFO: foo bar Foo Bar\n", s)
}
func TestShoutrrrInvalidTemplateUsesTemplate(t *testing.T) {
cmd := new(cobra.Command)