fix-messages: IDE0016

This commit is contained in:
SuhorukovAnton 2020-09-28 16:48:27 +03:00
parent 9e83a391e4
commit 3b0a86a536

View File

@ -95,9 +95,7 @@ namespace ASC.Files.Thirdparty.GoogleDrive
{
if (IsOpened)
return;
if (token == null) throw new UnauthorizedAccessException("Cannot create GoogleDrive session with given token");
_token = token;
_token = token ?? throw new UnauthorizedAccessException("Cannot create GoogleDrive session with given token");
var tokenResponse = new TokenResponse
{