Skip to content

Commit

Permalink
fix: Fix wrong behavior changes introduced by previous PR
Browse files Browse the repository at this point in the history
  • Loading branch information
filzrev committed Jul 29, 2023
1 parent 556d1fd commit e893940
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/Docfx.Tests.Common/TestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ protected static string UpdateFile(string fileName, string content, string baseF

protected static string CreateDirectory(string dir, string baseFolder)
{
ArgumentNullException.ThrowIfNull(dir);
if (string.IsNullOrEmpty(dir))
{
return string.Empty;
}

ArgumentNullException.ThrowIfNull(baseFolder);

var subDirectory = Path.Combine(baseFolder, dir);
Expand Down

0 comments on commit e893940

Please sign in to comment.