Skip to content

Commit ddf0e23

Browse files
committed
minor remove dead code
1 parent 5e6f737 commit ddf0e23

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

accounts/hd.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ func ParseDerivationPath(path string) (DerivationPath, error) {
7171
// Handle absolute or relative paths
7272
components := strings.Split(path, "/")
7373
switch {
74-
case len(components) == 0:
75-
return nil, errors.New("empty derivation path")
76-
7774
case strings.TrimSpace(components[0]) == "":
7875
return nil, errors.New("ambiguous path: use 'm/' prefix for absolute paths, or no leading '/' for relative ones")
7976

0 commit comments

Comments
 (0)