From fde340dda9ded520959d7d431757d5654241c60c Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 29 Dec 2023 20:20:20 +0100 Subject: cleaner --- c_ldirs.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'c_ldirs.go') diff --git a/c_ldirs.go b/c_ldirs.go index 199927a..601d074 100644 --- a/c_ldirs.go +++ b/c_ldirs.go @@ -72,9 +72,10 @@ func (ldirs *DirsList) add_back(node *DirsNode) { return } curr := ldirs.last - for curr.next != nil { - curr = curr.next - } + // for curr.next != nil { + // curr = curr.next + // } + new_node.ID = curr.ID + 1 curr.next = new_node ldirs.last = curr.next } -- cgit v1.2.3