Skip to content

Commit

Permalink
Change canUseDir condition
Browse files Browse the repository at this point in the history
  • Loading branch information
oluwandabira committed Jan 19, 2020
1 parent fba6981 commit 9b1de8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multiwallet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
// If will delete the directory if it is empty.
func canUseDir(directory string) bool {
if os.MkdirAll(directory, os.ModePerm) == nil {
return os.Remove(directory) == nil
return os.Remove(directory) != nil
}
return false
}
Expand Down

0 comments on commit 9b1de8b

Please sign in to comment.