chore: fix lint problems
This commit is contained in:
@@ -13,5 +13,4 @@ linters:
|
||||
- goimports
|
||||
- revive
|
||||
- gofmt
|
||||
- depguard
|
||||
- godot
|
||||
|
||||
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"go.lintTool": "golangci-lint"
|
||||
}
|
||||
@@ -27,14 +27,14 @@ type wrapLogger struct {
|
||||
|
||||
func (n *wrapLogger) WithValues(map[string]interface{}) log.Logger { return n }
|
||||
func (n *wrapLogger) WithCtxValues(context.Context) log.Logger { return n }
|
||||
func (n *wrapLogger) SetValuesOnCtx(parent context.Context, values map[string]interface{}) context.Context {
|
||||
func (n *wrapLogger) SetValuesOnCtx(parent context.Context, _ map[string]interface{}) context.Context {
|
||||
return parent
|
||||
}
|
||||
func (n *wrapLogger) Warningf(template string, args ...interface{}) {
|
||||
n.Warnf(template, args...)
|
||||
}
|
||||
|
||||
type CmdConfig struct {
|
||||
type Config struct {
|
||||
WebhookListenAddr string
|
||||
TLSCertFilePath string
|
||||
TLSKeyFilePath string
|
||||
@@ -46,7 +46,7 @@ type CmdConfig struct {
|
||||
}
|
||||
|
||||
var (
|
||||
cmdConfig = &CmdConfig{
|
||||
cmdConfig = &Config{
|
||||
LabelMarks: map[string]string{},
|
||||
}
|
||||
serverCmd = &cobra.Command{
|
||||
|
||||
Reference in New Issue
Block a user