Skip to content

Commit ec9e143

Browse files
Isaac LlopisRehanSaeed
authored andcommitted
Allowed name to be null in returned Project
1 parent c6de6fc commit ec9e143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Boxed.DotnetNewTest/TempDirectoryExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ await ProcessExtensions
6262
.ConfigureAwait(false);
6363
}
6464

65-
var projectDirectoryPath = Path.Combine(tempDirectory.DirectoryPath, name);
65+
var projectDirectoryPath = name == null ? tempDirectory.DirectoryPath : Path.Combine(tempDirectory.DirectoryPath, name);
6666
var publishDirectoryPath = Path.Combine(projectDirectoryPath, "Publish");
6767
return new Project(name, projectDirectoryPath, publishDirectoryPath);
6868
}

0 commit comments

Comments
 (0)