summaryrefslogtreecommitdiffstats
path: root/logging
diff options
context:
space:
mode:
authorSean E. Russell <ser@ser1.net>2020-04-27 20:33:41 -0500
committerSean E. Russell <ser@ser1.net>2020-04-27 20:33:41 -0500
commit285d4d02972e5d3e52efa6554fcbb08b42577f7c (patch)
treea06df20b360abdbc011b697e01e7ac9df5022117 /logging
parent1e78e6faa096237440e9cbbe254951f6d8588624 (diff)
Go vet/lint cleanups
Diffstat (limited to 'logging')
-rw-r--r--logging/logging_test.go4
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'
}