Skip to content
This repository was archived by the owner on Oct 28, 2022. It is now read-only.

Commit 8dc3846

Browse files
committed
Do the full matching process inline just to be sure
1 parent 7bd5998 commit 8dc3846

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controller/scan.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ var routeScraperScanCV = routeBuilder.R{
9393
return c.JSON(resp)
9494
}
9595

96-
resp.HasMatches = true
97-
MatchesProcess.AppendMatchesToProcess(ProcessMatches{
96+
ProcessMatches{
9897
Debug: body.Debug,
9998
MatchedProfiles: matchedProfiles,
10099
CV: body.CV,
@@ -103,7 +102,8 @@ var routeScraperScanCV = routeBuilder.R{
103102
KeyID: key.ID,
104103
KeyName: key.Name,
105104
RequestID: ctx.GetRequestID(c),
106-
})
105+
}.Process()
106+
resp.HasMatches = true
107107
if body.Debug {
108108
resp.Matches = matchedProfiles
109109
}

0 commit comments

Comments
 (0)