Browse Source

Update AbpIoApiKeyService.cs

pull/2635/head
Yunus Emre Kalkan 7 years ago
parent
commit
530f5c6b23
  1. 3
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Licensing/AbpIoApiKeyService.cs

3
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Licensing/AbpIoApiKeyService.cs

@ -81,8 +81,7 @@ namespace Volo.Abp.Cli.Licensing
var responseContent = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
var apiKeyResult = JsonSerializer.Deserialize<DeveloperApiKeyResult>(responseContent);
if (apiKeyResult == null ||
string.IsNullOrEmpty(apiKeyResult.ApiKey))
if (string.IsNullOrEmpty(apiKeyResult?.ApiKey))
{
_logger.LogError("Couldn't retrieve your NuGet API key!");
_logger.LogWarning(File.Exists(CliPaths.AccessToken)

Loading…
Cancel
Save