File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ linters:
35
35
- bodyclose
36
36
# - dogsled
37
37
# - dupl
38
+ - dupword
38
39
# - errcheck
39
40
# - errorlint
40
41
# - exhaustive
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ func (s *Server) Shutdown() {
68
68
}
69
69
70
70
func newStaticClientConfig (ips []string ) (* dns.ClientConfig , error ) {
71
- logrus .Tracef ("newStaticClientConfig creating config for the the following IPs: %v" , ips )
71
+ logrus .Tracef ("newStaticClientConfig creating config for the following IPs: %v" , ips )
72
72
s := ``
73
73
for _ , ip := range ips {
74
74
s += fmt .Sprintf ("nameserver %s\n " , ip )
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ var TemplateFuncMap = template.FuncMap{
77
77
},
78
78
"indent" : func (a ... interface {}) (string , error ) {
79
79
if len (a ) == 0 {
80
- return "" , errors .New ("function takes at at least one string argument" )
80
+ return "" , errors .New ("function takes at least one string argument" )
81
81
}
82
82
if len (a ) > 2 {
83
83
return "" , errors .New ("function takes at most 2 arguments" )
@@ -97,7 +97,7 @@ var TemplateFuncMap = template.FuncMap{
97
97
},
98
98
"missing" : func (a ... interface {}) (string , error ) {
99
99
if len (a ) == 0 {
100
- return "" , errors .New ("function takes at at least one string argument" )
100
+ return "" , errors .New ("function takes at least one string argument" )
101
101
}
102
102
if len (a ) > 2 {
103
103
return "" , errors .New ("function takes at most 2 arguments" )
You can’t perform that action at this time.
0 commit comments