Commit 8b4d8578 authored by szh's avatar szh

remove path.Dir

parent 2c727e7f
...@@ -312,9 +312,7 @@ func resetWallet() error { ...@@ -312,9 +312,7 @@ func resetWallet() error {
if isrun { if isrun {
return errors.New("bty is running") return errors.New("bty is running")
} }
p := fmt.Sprintf("%s/wallet", path.Dir(btyPath)) err = os.RemoveAll(fmt.Sprintf("%s/wallet", btyPath))
tlog.Info("reset wallet ","path",p)
err = os.RemoveAll(p)
if err != nil { if err != nil {
return err return err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment