8000 Update from PR review · notion-dotnet/notion-sdk-net@0cc8057 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0cc8057

Browse files
authored
Update from PR review
1 parent a96af1a commit 0cc8057

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Src/Notion.Client/Api/Authentication/RevokeToken/AuthenticationClient.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,11 @@ public async Task RevokeTokenAsync(
1212
{
1313
var body = (IRevokeTokenBodyParameters)revokeTokenRequest;
1414

15-
var response = await _client.PostAsync<HttpResponseMessage>(
15+
await _client.PostAsync<HttpResponseMessage>(
1616
ApiEndpoints.AuthenticationUrls.RevokeToken(),
1717
body,
1818
cancellationToken: cancellationToken
1919
);
20-
21-
if (!response.IsSuccessStatusCode)
22-
{
23-
throw new NotionApiException(response.StatusCode,
24-
null,
25-
"None success status code returned from revoke endpoint"
26-
);
27-
}
2820
}
2921
}
3022
}

0 commit comments

Comments
 (0)
0