Skip to content

Commit cc17e82

Browse files
committed
Cleanups
1 parent 36fee50 commit cc17e82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/StaticWebAssetsSdk/Tasks/DefineStaticWebAssetEndpoints.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,12 @@ internal ParallelWorker Process(int i, ParallelLoopState _)
302302
var asset = StaticWebAsset.FromTaskItem(CandidateAssets[i]);
303303
var routes = asset.ComputeRoutes().ToList();
304304
var matchContext = StaticWebAssetGlobMatcher.CreateMatchContext();
305+
305306
if (ExistingEndpointsByAssetFile != null && ExistingEndpointsByAssetFile.TryGetValue(asset.Identity, out var set))
306307
{
307308
for (var j = routes.Count - 1; j >= 0; j--)
308309
{
309-
var (label, route, values) = routes[j];
310+
var (_, route, _) = routes[j];
310311
// StaticWebAssets has this behavior where the base path for an asset only gets applied if the asset comes from a
311312
// package or a referenced project and ignored if it comes from the current project.
312313
// When we define the endpoint, we apply the path to the asset as if it was coming from the current project.

0 commit comments

Comments
 (0)