diff options
author | Sean E. Russell <ser@ser1.net> | 2020-04-27 20:33:41 -0500 |
---|---|---|
committer | Sean E. Russell <ser@ser1.net> | 2020-04-27 20:33:41 -0500 |
commit | 285d4d02972e5d3e52efa6554fcbb08b42577f7c (patch) | |
tree | a06df20b360abdbc011b697e01e7ac9df5022117 /logging | |
parent | 1e78e6faa096237440e9cbbe254951f6d8588624 (diff) |
Go vet/lint cleanups
Diffstat (limited to 'logging')
-rw-r--r-- | logging/logging_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
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' } |