good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 369b41df authored by Alex Sharov's avatar Alex Sharov Committed by GitHub
Browse files

clean (#1962)

parent ba185eff
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,6 @@ import (
"fmt"
"io/ioutil"
"os"
"runtime"
"time"
"github.com/ledgerwatch/turbo-geth/log"
......@@ -130,19 +129,9 @@ func MultiPut(tx RwTx, tuples ...[]byte) error {
}
func testKVPath() string {
var dir string
if runtime.GOOS == "windows" {
var err error
dir, err = os.UserCacheDir()
if err != nil {
panic(err)
}
} else {
var err error
dir, err = ioutil.TempDir(os.TempDir(), "tg-test-db")
if err != nil {
panic(err)
}
dir, err := ioutil.TempDir(os.TempDir(), "tg-test-db")
if err != nil {
panic(err)
}
return dir
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment