Skip to content

Commit

Permalink
More simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul van Brenk committed Aug 24, 2017
1 parent 4df84ae commit 6c59bfa
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Nodejs/Product/Nodejs/Project/NodejsProjectNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -585,16 +585,13 @@ public async Task CheckForLongPaths(string npmArguments = null)
this._isCheckingForLongPaths = true;

var longPaths = await Task.Factory.StartNew(() =>
GetLongSubPaths(this.ProjectHome)
.Concat(GetLongSubPaths(this._intermediateOutputPath))
.Any());
if (!longPaths)
GetLongSubPaths(this.ProjectHome).Any() || GetLongSubPaths(this._intermediateOutputPath).Any());

if (longPaths)
{
return;
Utilities.ShowMessageBox(
this.Site, Resources.LongPathWarningText, SR.ProductName, OLEMSGICON.OLEMSGICON_WARNING, OLEMSGBUTTON.OLEMSGBUTTON_OK, OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_FIRST);
}

Utilities.ShowMessageBox(
this.Site, Resources.LongPathWarningText, SR.ProductName, OLEMSGICON.OLEMSGICON_WARNING, OLEMSGBUTTON.OLEMSGBUTTON_OK, OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_FIRST);
}
finally
{
Expand Down

0 comments on commit 6c59bfa

Please sign in to comment.