From 8b38a040830109f19550e7329b82ec5caf76b321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 26 Oct 2022 15:23:04 +0200 Subject: Fix linting errors --- account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'account.go') diff --git a/account.go b/account.go index 9db952e..e29561c 100644 --- a/account.go +++ b/account.go @@ -212,7 +212,7 @@ func (a *Account) Capabilities() (Capabilities, error) { func (a *Account) RawCapabilities() ([]byte, error) { //This method is the only one in Schwift that bypasses struct Request since //the request URL is not below the endpoint URL. - req, err := http.NewRequest("GET", a.baseURL+"info", nil) + req, err := http.NewRequest(http.MethodGet, a.baseURL+"info", http.NoBody) if err != nil { return nil, err } -- cgit v1.2.3