aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@sap.com>2022-10-26 15:23:04 +0200
committerSandro Jäckel <sandro.jaeckel@sap.com>2022-10-28 12:55:16 +0200
commit8b38a040830109f19550e7329b82ec5caf76b321 (patch)
tree13ecc54219914102f69fb59e005a836a88f78f5c /account.go
parent4f67f4c0a59a850321b37a154efc9bde60539ca8 (diff)
downloadgo-schwift-8b38a040830109f19550e7329b82ec5caf76b321.tar.gz
Fix linting errors
Diffstat (limited to 'account.go')
-rw-r--r--account.go2
1 files changed, 1 insertions, 1 deletions
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
}