Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

refactored Project.cs use of language feature #788

Merged
merged 1 commit into from
Nov 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/Microsoft.Tye.Core/Project.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ public sealed class Project : Source
{
public Project(string relativeFilePath)
{
if (relativeFilePath is null)
{
throw new ArgumentNullException(nameof(relativeFilePath));
}

RelativeFilePath = relativeFilePath;
RelativeFilePath = relativeFilePath ?? throw new ArgumentNullException(nameof(relativeFilePath));
}

public string RelativeFilePath { get; }
Expand Down