Skip to content

Commit 6c59bfa

Browse files
author
Paul van Brenk
committed
More simplification
1 parent 4df84ae commit 6c59bfa

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Nodejs/Product/Nodejs/Project/NodejsProjectNode.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -585,16 +585,13 @@ public async Task CheckForLongPaths(string npmArguments = null)
585585
this._isCheckingForLongPaths = true;
586586

587587
var longPaths = await Task.Factory.StartNew(() =>
588-
GetLongSubPaths(this.ProjectHome)
589-
.Concat(GetLongSubPaths(this._intermediateOutputPath))
590-
.Any());
591-
if (!longPaths)
588+
GetLongSubPaths(this.ProjectHome).Any() || GetLongSubPaths(this._intermediateOutputPath).Any());
589+
590+
if (longPaths)
592591
{
593-
return;
592+
Utilities.ShowMessageBox(
593+
this.Site, Resources.LongPathWarningText, SR.ProductName, OLEMSGICON.OLEMSGICON_WARNING, OLEMSGBUTTON.OLEMSGBUTTON_OK, OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_FIRST);
594594
}
595-
596-
Utilities.ShowMessageBox(
597-
this.Site, Resources.LongPathWarningText, SR.ProductName, OLEMSGICON.OLEMSGICON_WARNING, OLEMSGBUTTON.OLEMSGBUTTON_OK, OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_FIRST);
598595
}
599596
finally
600597
{

0 commit comments

Comments
 (0)