Skip to content

Commit a2ad520

Browse files
committed
Fixed linting errors
1 parent 02f4a66 commit a2ad520

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

services/scan_service_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,14 +398,14 @@ func TestFetchOpenVexFromGitHub(t *testing.T) {
398398

399399
ts := time.Date(2026, time.May, 20, 12, 0, 0, 0, time.UTC)
400400
var id, author string
401-
402-
if filePath == "vex/vex1.json" {
401+
switch {
402+
case filePath == "vex/vex1.json":
403403
id = "openvex-first"
404404
author = "author-one"
405-
} else if filePath == "vex/vex2.json" {
405+
case filePath == "vex/vex2.json":
406406
id = "openvex-second"
407407
author = "author-two"
408-
} else {
408+
default:
409409
t.Fatalf("unexpected file path: %s", filePath)
410410
}
411411

services/vex_rule_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ func (s *VEXRuleService) parseVEXRulesFromOpenVEXReport(ctx context.Context, ass
525525
return nil, fmt.Errorf("no statements inside OpenVex Report")
526526
}
527527

528-
rules := make([]models.VEXRule, 0, len(*&vex.Statements))
528+
rules := make([]models.VEXRule, 0, len(vex.Statements))
529529
for _, statement := range vex.Statements {
530530
if statement.ID == "" {
531531
slog.Info("statement does not contain ID, skipping component for VEX rule creation", "openVEXReport", vex.ID)

0 commit comments

Comments
 (0)