Skip to content

Commit

Permalink
checking if new operation in newbtfino succeeded
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Tcherniack authored and Rafael David Tinoco committed Aug 28, 2021
1 parent a2a0e13 commit c3b9bd6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helpers/btfinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ func BTFEnabled() bool {
// by itself.
func NewBTFInfo() *BTFInfo {
btfi := new(BTFInfo)
if btfi == nil {
return nil
}

if err := btfi.DiscoverDistro(); err != nil {
return nil
Expand Down

0 comments on commit c3b9bd6

Please sign in to comment.