mirror of https://github.com/0xERR0R/blocky.git
style: fix all existing lint errors
This commit is contained in:
parent
f22e310501
commit
8a93e4500c
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -6,7 +6,7 @@ func NewNoneWriter() *NoneWriter {
|
|||
return &NoneWriter{}
|
||||
}
|
||||
|
||||
func (d *NoneWriter) Write(entry *LogEntry) {
|
||||
func (d *NoneWriter) Write(*LogEntry) {
|
||||
// Nothing to do
|
||||
}
|
||||
|
||||
|
|
|
@ -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{}) {}
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
@ -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")
|
||||
}
|
||||
|
||||
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue