From 3d86513398ec5630d98702375277d9083a95e63a Mon Sep 17 00:00:00 2001 From: SputNikPlop <100245448+SputNikPlop@users.noreply.github.com> Date: Thu, 2 Nov 2023 22:41:34 -0700 Subject: [PATCH] fix: unused err (#283) fix: unused err --- internal/login/login_request.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/login/login_request.go b/internal/login/login_request.go index 865175bd..92ed7215 100644 --- a/internal/login/login_request.go +++ b/internal/login/login_request.go @@ -27,6 +27,10 @@ func loginRequest(method string, url string, payload io.Reader) (loginRequestRes func loginRequestWithHeaders(method string, url string, payload io.Reader, headers []loginHeader) (loginRequestResponse, error) { req, err := request.NewRequest(method, url, payload) + if err != nil { + return loginRequestResponse{}, err + } + for _, header := range headers { req.Header.Add(header.Key, header.Value) }