From 6c59bfa76f38238a4a797d694e4a86bd72ae78d2 Mon Sep 17 00:00:00 2001 From: Paul van Brenk Date: Thu, 24 Aug 2017 16:03:36 -0700 Subject: [PATCH] More simplification --- Nodejs/Product/Nodejs/Project/NodejsProjectNode.cs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Nodejs/Product/Nodejs/Project/NodejsProjectNode.cs b/Nodejs/Product/Nodejs/Project/NodejsProjectNode.cs index eb2e62540..0472705ac 100644 --- a/Nodejs/Product/Nodejs/Project/NodejsProjectNode.cs +++ b/Nodejs/Product/Nodejs/Project/NodejsProjectNode.cs @@ -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 {