Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 9c6eb80

Browse files
committed
NullGuard asserts are useless when testing in debug mode
1 parent 369f808 commit 9c6eb80

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/GitHub.App/Services/PullRequestService.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,20 @@
44

55
namespace GitHub.Services
66
{
7+
[NullGuard.NullGuard(NullGuard.ValidationFlags.None)]
78
[Export(typeof(IPullRequestService))]
89
[PartCreationPolicy(CreationPolicy.Shared)]
910
public class PullRequestService : IPullRequestService
1011
{
1112
public IObservable<IPullRequestModel> CreatePullRequest(IRepositoryHost host, ISimpleRepositoryModel repository, string title, string body, IBranch source, IBranch target)
1213
{
14+
Extensions.Guard.ArgumentNotNull(host, nameof(host));
15+
Extensions.Guard.ArgumentNotNull(repository, nameof(repository));
16+
Extensions.Guard.ArgumentNotNull(title, nameof(title));
17+
Extensions.Guard.ArgumentNotNull(body, nameof(body));
18+
Extensions.Guard.ArgumentNotNull(source, nameof(source));
19+
Extensions.Guard.ArgumentNotNull(target, nameof(target));
20+
1321
return host.ModelService.CreatePullRequest(repository, title, body, source, target);
1422
}
1523
}

0 commit comments

Comments
 (0)