Skip to content

Commit

Permalink
Address code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksmaus committed May 13, 2021
1 parent a7f7cc3 commit de9f51b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion x-pack/osquerybeat/beater/action_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type actionData struct {
}

func actionDataFromRequest(req map[string]interface{}) (ad actionData, err error) {
if req == nil {
if len(req) == 0 {
return ad, ErrActionRequest
}
if v, ok := req["id"]; ok {
Expand Down
6 changes: 1 addition & 5 deletions x-pack/osquerybeat/beater/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ func installOsquery(ctx context.Context) error {
exedir := filepath.Dir(exefp)

// Install osqueryd if needed
err = installOsqueryWithDir(ctx, exedir)
if err != nil {
return err
}
return nil
return installOsqueryWithDir(ctx, exedir)
}

func installOsqueryWithDir(ctx context.Context, dir string) error {
Expand Down

0 comments on commit de9f51b

Please sign in to comment.