cloudflare/pint
Publicmirrored from https://github.com/cloudflare/pintAvailable
internal/discovery/noop.go
17lines · modecode
| 1 | package discovery |
| 2 | |
| 3 | type AlwaysPresentLines struct{} |
| 4 | |
| 5 | func (apl AlwaysPresentLines) Results() []Line { |
| 6 | return nil |
| 7 | } |
| 8 | |
| 9 | func (apl AlwaysPresentLines) HasLines(lines []int) bool { |
| 10 | return true |
| 11 | } |
| 12 | |
| 13 | type NoopLineFinder struct{} |
| 14 | |
| 15 | func (nlf NoopLineFinder) Find(string) (LineFindResults, error) { |
| 16 | return AlwaysPresentLines{}, nil |
| 17 | } |
| 18 | |