Skip to content

Commit

Permalink
Allowed name to be null in returned Project
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Llopis authored and RehanSaeed committed Jun 29, 2020
1 parent c6de6fc commit ec9e143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Boxed.DotnetNewTest/TempDirectoryExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ await ProcessExtensions
.ConfigureAwait(false);
}

var projectDirectoryPath = Path.Combine(tempDirectory.DirectoryPath, name);
var projectDirectoryPath = name == null ? tempDirectory.DirectoryPath : Path.Combine(tempDirectory.DirectoryPath, name);
var publishDirectoryPath = Path.Combine(projectDirectoryPath, "Publish");
return new Project(name, projectDirectoryPath, publishDirectoryPath);
}
Expand Down

0 comments on commit ec9e143

Please sign in to comment.