Skip to content

Commit

Permalink
fix: fix fuzzy test
Browse files Browse the repository at this point in the history
  • Loading branch information
donald1218 committed Apr 24, 2024
1 parent 067f07f commit b396ec1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/service/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ type AmfApp struct {
var AMF *AmfApp

func GetApp() *AmfApp {
if AMF == nil {
amf := &AmfApp{
// consumer: consumer,

}
AMF = amf
consumer, _ := consumer.NewConsumer(AMF)

Check failure on line 38 in pkg/service/init.go

View workflow job for this annotation

GitHub Actions / lint (1.21)

Error return value of `consumer.NewConsumer` is not checked (errcheck)
amf.consumer = consumer
}
return AMF
}

Expand Down

0 comments on commit b396ec1

Please sign in to comment.