We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 035fdb1 commit 3ac2a5bCopy full SHA for 3ac2a5b
godoc/corpus.go
@@ -6,7 +6,6 @@ package godoc
6
7
import (
8
"errors"
9
- pathpkg "path"
10
"sync"
11
"time"
12
@@ -87,8 +86,6 @@ type Corpus struct {
87
86
// If nil, all directories are indexed if indexing is enabled.
88
IndexDirectory func(dir string) bool
89
90
- testDir string // TODO(bradfitz,adg): migrate old godoc flag? looks unused.
91
-
92
// Send a value on this channel to trigger a metadata refresh.
93
// It is buffered so that if a signal is not lost if sent
94
// during a refresh.
@@ -158,7 +155,7 @@ func (c *Corpus) Init() error {
158
155
}
159
156
160
157
func (c *Corpus) initFSTree() error {
161
- dir := c.newDirectory(pathpkg.Join("/", c.testDir), -1)
+ dir := c.newDirectory("/", -1)
162
if dir == nil {
163
return errors.New("godoc: corpus fstree is nil")
164
0 commit comments