Skip to content

Commit

Permalink
style: fix all existing lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ThinkChaos committed Jul 7, 2023
1 parent f22e310 commit 8a93e45
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion api/api_endpoints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (b *BlockingControlMock) EnableBlocking() {
b.enabled = true
}

func (b *BlockingControlMock) DisableBlocking(_ time.Duration, disableGroups []string) error {
func (b *BlockingControlMock) DisableBlocking(time.Duration, []string) error {
b.enabled = false

return nil
Expand Down
1 change: 1 addition & 0 deletions cmd/healthcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func NewHealthcheckCommand() *cobra.Command {
}

func healthcheck(cmd *cobra.Command, args []string) error {
_ = args
port, _ := cmd.Flags().GetUint16("port")

c := new(dns.Client)
Expand Down
2 changes: 1 addition & 1 deletion querylog/none_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ func NewNoneWriter() *NoneWriter {
return &NoneWriter{}
}

func (d *NoneWriter) Write(entry *LogEntry) {
func (d *NoneWriter) Write(*LogEntry) {
// Nothing to do
}

Expand Down
2 changes: 1 addition & 1 deletion redis/redis_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ func TestRedisClient(t *testing.T) {

type NoLogs struct{}

func (l NoLogs) Printf(ctx context.Context, format string, v ...interface{}) {}
func (l NoLogs) Printf(context.Context, string, ...interface{}) {}
12 changes: 6 additions & 6 deletions resolver/mocks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (r *mockResolver) IsEnabled() bool {
}

// LogConfig implements `config.Configurable`.
func (r *mockResolver) LogConfig(logger *logrus.Entry) {
func (r *mockResolver) LogConfig(*logrus.Entry) {
r.Called()
}

Expand Down Expand Up @@ -193,11 +193,11 @@ var aMockConn = &mockConn{}

type mockConn struct{}

func (c *mockConn) Read(b []byte) (n int, err error) {
func (c *mockConn) Read([]byte) (n int, err error) {
panic("not implemented")
}

func (c *mockConn) Write(b []byte) (n int, err error) {
func (c *mockConn) Write([]byte) (n int, err error) {
panic("not implemented")
}

Expand All @@ -213,14 +213,14 @@ func (c *mockConn) RemoteAddr() net.Addr {
panic("not implemented")
}

func (c *mockConn) SetDeadline(t time.Time) error {
func (c *mockConn) SetDeadline(time.Time) error {
panic("not implemented")
}

func (c *mockConn) SetReadDeadline(t time.Time) error {
func (c *mockConn) SetReadDeadline(time.Time) error {
panic("not implemented")
}

func (c *mockConn) SetWriteDeadline(t time.Time) error {
func (c *mockConn) SetWriteDeadline(time.Time) error {
panic("not implemented")
}

0 comments on commit 8a93e45

Please sign in to comment.