Skip to content

Commit

Permalink
trim trailing / from ancient path
Browse files Browse the repository at this point in the history
  • Loading branch information
simonecid committed Jan 7, 2025
1 parent 37e6f70 commit 6cd182c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cli/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ func checkDeletePermissions(path string) (bool, error) {
func (c *PruneBlockCommand) pruneBlock(stack *node.Node, fdHandles int) error {
name := "chaindata"

oldAncientPath := c.datadirAncient
oldAncientPath := strings.TrimSuffix(c.datadirAncient, "/")

switch {
case oldAncientPath == "":
Expand Down

0 comments on commit 6cd182c

Please sign in to comment.