From acd940a450dc620d9b3484a8f0369a17d5a394ba Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Fri, 8 Nov 2013 13:37:30 -0800 Subject: [PATCH] refactor comments on IsPermanent --- store/node.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/store/node.go b/store/node.go index 33ae76692..6b11727c8 100644 --- a/store/node.go +++ b/store/node.go @@ -84,6 +84,9 @@ func (n *Node) IsHidden() bool { // IsPermanent function checks if the node is a permanent one. func (n *Node) IsPermanent() bool { + // we use a uninitialized time.Time to indicate the node is a + // permanent one. + // the uninitialized time.Time should equal zero. return n.ExpireTime.IsZero() }