Skip to content

Commit

Permalink
Correct API declaration of GetResult to be nullable (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
bingenito authored Feb 8, 2024
1 parent ea60fbb commit 5081c26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Fdc3/IIntentResolution.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ public interface IIntentResolution
/// </summary>
string? Version { get; }

Task<IIntentResult> GetResult();
Task<IIntentResult?> GetResult();
}
}
2 changes: 1 addition & 1 deletion src/Fdc3/IntentResolution.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ public IntentResolution(IAppMetadata source, string intent, string? version = nu
/// </summary>
public string? Version { get; }

public abstract Task<IIntentResult> GetResult();
public abstract Task<IIntentResult?> GetResult();
}
}
2 changes: 1 addition & 1 deletion src/Tests/Finos.Fdc3.Tests/IntentResolutionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public MockIntentResolution(IAppMetadata source, string intent, string? version
{
}

public override Task<IIntentResult> GetResult()
public override Task<IIntentResult?> GetResult()
{
throw new NotImplementedException();
}
Expand Down

0 comments on commit 5081c26

Please sign in to comment.