Go vet/lint cleanups

This commit is contained in:
Sean E. Russell
2020-04-27 20:33:41 -05:00
parent 1e78e6faa0
commit 285d4d0297
19 changed files with 271 additions and 295 deletions

View File

@ -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'
}