| Conditions | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package client |
||
| 8 | func decorateTransportWithHeadersDecorator(decorated http.RoundTripper, headers map[string]string) (*headersTransportDecorator, error) { |
||
| 9 | if decorated == nil { |
||
| 10 | return nil, errors.New("decorated round tripper is nil") |
||
| 11 | } |
||
| 12 | |||
| 13 | if headers == nil { |
||
| 14 | return nil, errors.New("headers is nil") |
||
| 15 | } |
||
| 16 | |||
| 17 | return &headersTransportDecorator{decorated: decorated, headers: headers}, nil |
||
| 18 | } |
||
| 32 |