Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
blotus committed Nov 25, 2024
1 parent 940faf5 commit 8a5086e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions pkg/acquisition/modules/appsec/appsec_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ func (r *AppsecRunner) Init(datadir string) error {
r.logger.Tracef("Loaded inband rules: %+v", r.AppsecInbandEngine.GetRuleGroup().GetRules())
r.logger.Tracef("Loaded outband rules: %+v", r.AppsecOutbandEngine.GetRuleGroup().GetRules())

if err != nil {
return fmt.Errorf("unable to initialize outband engine : %w", err)
}

return nil
}

Expand Down
5 changes: 2 additions & 3 deletions pkg/acquisition/modules/appsec/appsec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,10 @@ func loadAppSecEngine(test appsecRuleTest, t *testing.T) {
}
err = runner.Init("/tmp/")
if err != nil {
if test.expected_load_ok {
t.Fatalf("unable to initialize runner : %s", err)
} else {
if !test.expected_load_ok {
return
}
t.Fatalf("unable to initialize runner : %s", err)
}
if !test.expected_load_ok {
t.Fatalf("expected load to fail but it didn't")
Expand Down

0 comments on commit 8a5086e

Please sign in to comment.