pkg/flow/memory.go
Method engine.getInstanceMemory
has 60 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (engine *engine) getInstanceMemory(ctx context.Context, id uuid.UUID) (*instanceMemory, error) {
tx, err := engine.flow.beginSQLTx(ctx, &sql.TxOptions{
Isolation: sql.LevelSerializable,
})
if err != nil {
Method engine.getInstanceMemory
has 11 return statements (exceeds 4 allowed). Open
Open
func (engine *engine) getInstanceMemory(ctx context.Context, id uuid.UUID) (*instanceMemory, error) {
tx, err := engine.flow.beginSQLTx(ctx, &sql.TxOptions{
Isolation: sql.LevelSerializable,
})
if err != nil {
Method instanceMemory.flushUpdates
has 6 return statements (exceeds 4 allowed). Open
Open
func (im *instanceMemory) flushUpdates(ctx context.Context) error {
data, err := json.Marshal(im.updateArgs)
if err != nil {
panic(err)
}