(cwd string)
| 401 | if readErr == nil { |
| 402 | docs = append(docs, doc) |
| 403 | } |
| 404 | } |
| 405 | if len(docs) > 0 { |
| 406 | result.Docs = docs |
| 407 | return result, nil |
| 408 | } |
| 409 | |
| 410 | if cfg.Paths.InstructionsDir != "" { |
| 411 | doc, homeErr := readProjectInstructionFileWithOptions(cfg.Paths.InstructionsDir, cfg.ProjectDocFilenamesOrDefault(), cfg.ProjectDocMaxBytesOrDefault()) |
| 412 | if homeErr == nil { |
| 413 | result.Docs = []ProjectDoc{doc} |
| 414 | result.FallbackPath = doc.Path |
| 415 | return result, nil |
| 416 | } |
| 417 | } |
| 418 | return result, nil |
| 419 | } |
nothing calls this directly
no test coverage detected