metalinter fixes from review

This commit is contained in:
Ethan Buchman
2017-10-04 00:13:58 -04:00
parent cf49ba876f
commit c8805fd7de
3 changed files with 6 additions and 5 deletions

View File

@ -18,7 +18,7 @@ func TestSIGHUP(t *testing.T) {
t.Fatalf("Error creating tempfile: %v", err)
}
// Here is the actual AutoFile
af, err := cmn.OpenAutoFile(name)
af, err := OpenAutoFile(name)
if err != nil {
t.Fatalf("Error creating autofile: %v", err)
}
@ -34,7 +34,8 @@ func TestSIGHUP(t *testing.T) {
}
// Move the file over
if err := os.Rename(name, name+"_old"); err != nil {
err = os.Rename(name, name+"_old")
if err != nil {
t.Fatalf("Error moving autofile: %v", err)
}