Skip to content

Commit

Permalink
fix: build warnings (null)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdashworth committed Oct 23, 2024
1 parent 2f6db6c commit 5fa456e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NameBadgeAutomater/Services/NameParserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public List<Person> ParseRawNames(string rawNames)
.ToList();
}

public Person? ParseRawName(string rawName)
public Person? ParseRawName(string? rawName)
{
if (string.IsNullOrWhiteSpace(rawName)) return null; // No name.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void ParseRawName_ShouldReturnCorrectNames(string rawName, string firstNa
[InlineData(null)]
[InlineData("")]
[InlineData(" ")]
public void ParseRawName_ShouldReturnNull_WhenEmptyValue(string rawName)
public void ParseRawName_ShouldReturnNull_WhenEmptyValue(string? rawName)
{
//Arrange
var sut = new NameParserService();
Expand Down

0 comments on commit 5fa456e

Please sign in to comment.