fix fmt and vetting issues

pull/661/head v1.0.3
Simon Aronsson 4 years ago
parent ca292a1817
commit a7a28ec984
No known key found for this signature in database
GPG Key ID: FAD201D3387ED34B

@ -31,7 +31,7 @@ var (
timeout time.Duration
lifecycleHooks bool
rollingRestart bool
scope string
scope string
)
var rootCmd = &cobra.Command{

@ -78,4 +78,3 @@ func (_m *FilterableContainer) Scope() (string, bool) {
return r0, r1
}

@ -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

@ -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)

Loading…
Cancel
Save