From 05c5a6adc3f0c5d1ceeb130953f8693945815f10 Mon Sep 17 00:00:00 2001 From: satoru Date: Thu, 28 Nov 2019 17:04:33 +0800 Subject: [PATCH] *: Enable unused/deadcode/varcheck/errcheck (#140) --- Makefile | 6 +----- cdc/capture.go | 4 ---- cdc/capture_info_test.go | 5 ++++- cdc/cdc_test.go | 4 ++++ cdc/entry/kv_entry.go | 10 +--------- cdc/http_status_test.go | 3 ++- cdc/kv/etcd_test.go | 5 ++++- cdc/kv/testing.go | 7 +++++-- cdc/mock/mock_tidb.go | 3 ++- cdc/owner_test.go | 5 ++++- cdc/processor.go | 8 +++++--- cdc/processor_test.go | 3 ++- cdc/puller/puller.go | 8 ++++++-- cdc/puller/span_frontier.go | 8 -------- cdc/roles/manager.go | 1 - cdc/roles/manager_test.go | 5 ++++- cdc/roles/storage/etcd_test.go | 5 ++++- cdc/scheduler_test.go | 5 ++++- cdc/schema/storage.go | 10 ---------- cdc/sink/mysql.go | 16 ++++++++++++---- cdc/txn/txn.go | 5 ++++- tools/check/check-tidy.sh | 6 +++++- 22 files changed, 73 insertions(+), 59 deletions(-) diff --git a/Makefile b/Makefile index dda12abe178..3bbf2d63f6d 100644 --- a/Makefile +++ b/Makefile @@ -98,13 +98,9 @@ else grep -F '