mirror of
https://github.com/golang/go.git
synced 2025-05-16 12:54:37 +00:00
godoc: diagnostic for empty FS tree
R=adg CC=golang-dev https://golang.org/cl/5615055
This commit is contained in:
parent
870c9d1c09
commit
bd41831f66
@ -114,7 +114,12 @@ func registerPublicHandlers(mux *http.ServeMux) {
|
||||
}
|
||||
|
||||
func initFSTree() {
|
||||
fsTree.set(newDirectory(filepath.Join(*goroot, *testDir), nil, -1))
|
||||
dir := newDirectory(filepath.Join(*goroot, *testDir), nil, -1)
|
||||
if dir == nil {
|
||||
log.Println("Warning: FSTree is nil")
|
||||
return
|
||||
}
|
||||
fsTree.set(dir)
|
||||
invalidateIndex()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user