From 285d4d02972e5d3e52efa6554fcbb08b42577f7c Mon Sep 17 00:00:00 2001 From: "Sean E. Russell" Date: Mon, 27 Apr 2020 20:33:41 -0500 Subject: Go vet/lint cleanups --- logging/logging_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'logging') diff --git a/logging/logging_test.go b/logging/logging_test.go index a1ac3d4..1ea7484 100644 --- a/logging/logging_test.go +++ b/logging/logging_test.go @@ -17,8 +17,6 @@ func TestLogging(t *testing.T) { defer os.RemoveAll(path) c := gotop.Config{ MaxLogSize: 300, - LogDir: path, - LogFile: "errors.log", } wc, err := New(c) assert.NoError(t, err) @@ -27,7 +25,7 @@ func TestLogging(t *testing.T) { } defer wc.Close() ds := make([]byte, 100) - for i, _ := range ds { + for i := range ds { ds[i] = 'x' } -- cgit v1.2.3