errDecoder is an error-state decoder that always returns the same error.
| 172 | |
| 173 | // errDecoder is an error-state decoder that always returns the same error. |
| 174 | type errDecoder struct { |
| 175 | err error |
| 176 | } |
| 177 | |
| 178 | func (d *errDecoder) Decode(*dto.MetricFamily) error { |
| 179 | return d.err |
nothing calls this directly
no outgoing calls
no test coverage detected