Skip to content

Commit

Permalink
Merge pull request #9 from cnblogs/remove-checking-OssCredential
Browse files Browse the repository at this point in the history
Remove checking OssCredential options
  • Loading branch information
cnblogs-dudu authored May 23, 2020
2 parents 335e60f + 033eeca commit 56781f7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Request/RequestContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@ public RequestContext(IOptions<OssCredential> credentialOptions, ClientConfigura
{
OssCredential = credentialOptions.Value;
ClientConfiguration = config;

if(string.IsNullOrWhiteSpace(OssCredential.AccessKeyId))
{
throw new ArgumentNullException(nameof(OssCredential.AccessKeyId));
}

if (string.IsNullOrWhiteSpace(OssCredential.AccessKeySecret))
{
throw new ArgumentNullException(nameof(OssCredential.AccessKeySecret));
}
}
/// <summary>
/// 客户端配置
Expand Down

0 comments on commit 56781f7

Please sign in to comment.