Skip to content

Commit 4a0bbaf

Browse files
remove duplicate check
1 parent aeea621 commit 4a0bbaf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/PowerShellEditorServices.Hosting/Commands/StartEditorServicesCommand.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,7 @@ private string GetLogDirPath()
303303
: Path.GetDirectoryName(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
304304

305305
// Ensure logDir exists
306-
if (!Directory.Exists(logDir))
307-
{
308-
Directory.CreateDirectory(logDir);
309-
}
306+
Directory.CreateDirectory(logDir);
310307

311308
return logDir;
312309
}

0 commit comments

Comments
 (0)