Skip to content

Commit 502932e

Browse files
committed
chore(config): address staticcheck errors
This addresses the following staticcheck error (seen in https://github.com/integrations/terraform-provider-github/actions/runs/21232219897/job/61621068985?pr=2514): ``` Error: github/config.go:196:13: QF1001: could apply De Morgan's law (staticcheck) ``` Signed-off-by: Mike Ball <[email protected]>
1 parent e0eb14b commit 502932e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func (injector *previewHeaderInjectorTransport) RoundTrip(req *http.Request) (*h
193193
// If one has been set, it's necessary to preserve it as-is, without
194194
// appending previewHeaders value.
195195
// See https://github.com/google/go-github/pull/3392
196-
} else if !(strings.ToLower(name) == "accept" && header == "application/octet-stream") {
196+
} else if strings.ToLower(name) != "accept" || header != "application/octet-stream" {
197197
header = strings.Join([]string{header, value}, ",")
198198
}
199199
req.Header.Set(name, header)

0 commit comments

Comments
 (0)