mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
minor remove dead code
This commit is contained in:
parent
5e6f7374de
commit
ddf0e23beb
1 changed files with 0 additions and 3 deletions
|
|
@ -71,9 +71,6 @@ func ParseDerivationPath(path string) (DerivationPath, error) {
|
||||||
// Handle absolute or relative paths
|
// Handle absolute or relative paths
|
||||||
components := strings.Split(path, "/")
|
components := strings.Split(path, "/")
|
||||||
switch {
|
switch {
|
||||||
case len(components) == 0:
|
|
||||||
return nil, errors.New("empty derivation path")
|
|
||||||
|
|
||||||
case strings.TrimSpace(components[0]) == "":
|
case strings.TrimSpace(components[0]) == "":
|
||||||
return nil, errors.New("ambiguous path: use 'm/' prefix for absolute paths, or no leading '/' for relative ones")
|
return nil, errors.New("ambiguous path: use 'm/' prefix for absolute paths, or no leading '/' for relative ones")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue