Skip to content

Commit b0b6a3b

Browse files
authored
Fix matching typos (#21590)
1 parent edcd235 commit b0b6a3b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

frontend/pages/SoftwarePage/SoftwareVulnerabilities/SoftwareVulnerabilities.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ const SoftwareVulnerabilities = ({
203203
} else if (error.status === 404) {
204204
if (
205205
error?.data?.errors &&
206-
(error.data.errors[0].reason.includes("This is not known CVE.") ||
206+
(error.data.errors[0].reason.includes("This is not a known CVE.") ||
207207
error.data.errors[0].reason.includes(
208208
"was not found in the datastore"
209209
))

server/service/vulnerabilities.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type cveNotFoundError struct{}
2424
var _ fleet.NotFoundError = (*cveNotFoundError)(nil)
2525

2626
func (p cveNotFoundError) Error() string {
27-
return "This is not known CVE. None of Fleet’s vulnerability sources are aware of this CVE."
27+
return "This is not a known CVE. None of Fleet’s vulnerability sources are aware of this CVE."
2828
}
2929

3030
func (p cveNotFoundError) IsNotFound() bool {
@@ -174,7 +174,8 @@ func getVulnerabilityEndpoint(ctx context.Context, req interface{}, svc fleet.Se
174174
}
175175

176176
func (svc *Service) Vulnerability(ctx context.Context, cve string, teamID *uint, useCVSScores bool) (vuln *fleet.VulnerabilityWithMetadata,
177-
known bool, err error) {
177+
known bool, err error,
178+
) {
178179
if err := svc.authz.Authorize(ctx, &fleet.AuthzSoftwareInventory{TeamID: teamID}, fleet.ActionRead); err != nil {
179180
return nil, false, err
180181
}

0 commit comments

Comments
 (0)