Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
move empty dir copying to CopyFiles, plus comments
Browse files Browse the repository at this point in the history
Signed-off-by: Callum Stytan <[email protected]>
  • Loading branch information
cstyan committed Sep 21, 2018
1 parent 8ef36af commit 1337f23
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions fileutil/fileutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,3 @@ func Replace(from, to string) error {
}
return pdir.Close()
}

//
2 changes: 1 addition & 1 deletion repair_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func TestRepairBadIndexVersion(t *testing.T) {
if err = fileutil.CopyDirs(dbDir, tmpDbDir); err != nil {
t.Fatal(err)
}
// defer os.RemoveAll(tmpDir)
defer os.RemoveAll(tmpDir)
// On DB opening all blocks in the base dir should be repaired.
db, err := Open(tmpDir, nil, nil, nil)
testutil.Ok(t, err)
Expand Down

0 comments on commit 1337f23

Please sign in to comment.