Source/Protobuf/ArtifactExtensions.cs
Method TryTo
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static bool TryTo<TArtifact, TId>(this PbArtifact source, [NotNullWhen(true)] out TArtifact? artifact, [NotNullWhen(false)] out Exception? error)
where TArtifact : Artifact<TId>
where TId : ArtifactId
{
artifact = default;
Avoid too many return
statements within this method. Open
Open
return true;
Avoid too many return
statements within this method. Open
Open
return false;