mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 16:14:59 +00:00
hugolib: Simplify range
This commit is contained in:
1 parent
8dace9ad6d
commit
72156e403c
1 file changed
+1
-1
+1
-1
@@ -2265,7 +2265,7 @@ func (s *Site) getOrAddNode(nodeID string, add bool) *Node {
|
||||
|
||||
if !add {
|
||||
// this is a test type error, print the keys
|
||||
for k, _ := range s.nodeCache.m {
|
||||
for k := range s.nodeCache.m {
|
||||
fmt.Println("Node:", k)
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user