Browse Source

Fix ReSharper's "MergeSequentialChecks"

pull/9032/head
marodev 5 years ago
parent
commit
af6f655cf5
  1. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlerBase.cs

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlerBase.cs

@ -75,7 +75,7 @@ namespace Volo.Abp.Cli.Bundling
var pathFragments = definition.Source.Split('/').ToList();
var basePath = $"{pathFragments[0]}/{pathFragments[1]}";
var node = staticAssetsDefinitions.SelectSingleNode($"//ContentRoot[@BasePath='{basePath}']");
if (node == null || node.Attributes == null)
if (node?.Attributes == null)
{
throw new AbpException("Not found: " + definition.Source);
}

Loading…
Cancel
Save