errDecoder is an error-state decoder that always returns the same error.
| 139 | |
| 140 | // errDecoder is an error-state decoder that always returns the same error. |
| 141 | type errDecoder struct { |
| 142 | err error |
| 143 | } |
| 144 | |
| 145 | func (d *errDecoder) Decode(*dto.MetricFamily) error { |
| 146 | return d.err |
nothing calls this directly
no outgoing calls
no test coverage detected