looplab / eventhorizon

Event Sourcing for Go!
Apache License 2.0
1.59k stars 195 forks source link

set eventStore variable in the inner check #384

Closed qzio closed 2 years ago

qzio commented 2 years ago

Description

Avoid the eventStore variable to potentially be nil.

Affected Components

Related Issues

Solution and Design

set the eventStore variable as part of the inner check.

Steps to test and verify

coveralls commented 2 years ago

Coverage Status

Coverage decreased (-0.08%) to 68.724% when pulling 622561d466948d09a8ccd07ce3f3266b8d738b05 on qzio:potential-namespace-eventstore-nil-error into 1a724818998425e1b7a84932cfa378c92c504c7d on looplab:main.