Skip to content

Commit d0f3df8

Browse files
committed
* Add null check attribute.
1 parent 4506a00 commit d0f3df8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

projects/RabbitMQ.Client/client/api/ConnectionFactory.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
using System;
3333
using System.Collections.Generic;
34+
using System.Diagnostics.CodeAnalysis;
3435
using System.Linq;
3536
using System.Net.Security;
3637
using System.Reflection;
@@ -759,6 +760,7 @@ private List<AmqpTcpEndpoint> LocalEndpoints()
759760
return new List<AmqpTcpEndpoint> { Endpoint };
760761
}
761762

763+
[return: NotNullIfNotNull(nameof(clientProvidedName))]
762764
private static string? EnsureClientProvidedNameLength(string? clientProvidedName)
763765
{
764766
if (clientProvidedName != null)

0 commit comments

Comments
 (0)